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
Syntaxpublic virtual int CompareSegments(
Size size,
InputArray lines1,
InputArray lines2,
InputOutputArray image = null
)
Public Overridable Function CompareSegments (
size As Size,
lines1 As InputArray,
lines2 As InputArray,
Optional image As InputOutputArray = Nothing
) As Integer
public:
virtual int CompareSegments(
Size size,
InputArray^ lines1,
InputArray^ lines2,
InputOutputArray^ image = nullptr
)
abstract CompareSegments :
size : Size *
lines1 : InputArray *
lines2 : InputArray *
?image : InputOutputArray
(* Defaults:
let _image = defaultArg image null
*)
-> int
override CompareSegments :
size : Size *
lines1 : InputArray *
lines2 : InputArray *
?image : InputOutputArray
(* Defaults:
let _image = defaultArg image null
*)
-> int
function CompareSegments(size, lines1, lines2, image);
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