Table of Contents

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

size Size

The size of the image, where lines1 and lines2 were found.

lines1 InputArray

The first group of lines that needs to be drawn. It is visualized in blue color.

lines2 InputArray

The second group of lines. They visualized in red color.

image InputOutputArray

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.

Returns

int