Method CompareSegments
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
CompareSegments(Size, InputArray, InputArray, InputOutputArray)
Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels.
public virtual int CompareSegments(Size size, InputArray lines1, InputArray lines2, InputOutputArray image = default)
Parameters
sizeSizeThe size of the image, where lines1 and lines2 were found.
lines1InputArrayThe first group of lines that needs to be drawn. It is visualized in blue color.
lines2InputArrayThe second group of lines. They visualized in red color.
imageInputOutputArrayOptional 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.