Click or drag to resize

LineSegmentDetectorCompareSegments Method

Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public virtual int CompareSegments(
	Size size,
	InputArray lines1,
	InputArray lines2,
	InputOutputArray image = null
)

Parameters

size
Type: OpenCvSharpSize
The size of the image, where lines1 and lines2 were found.
lines1
Type: OpenCvSharpInputArray
The first group of lines that needs to be drawn. It is visualized in blue color.
lines2
Type: OpenCvSharpInputArray
The second group of lines. They visualized in red color.
image (Optional)
Type: OpenCvSharpInputOutputArray
Optional image, where the lines will be drawn. The image should be color(3-channel) in order for lines1 and lines2 to be drawn in the above mentioned colors.

Return Value

Type: Int32
See Also