Table of Contents

Method Compare

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Compare(InputArray, InputArray, OutputArray, CmpTypes)

Performs the per-element comparison of two arrays or an array and scalar value.

public static void Compare(InputArray src1, InputArray src2, OutputArray dst, CmpTypes cmpop)

Parameters

src1 InputArray

first input array or a scalar; when it is an array, it must have a single channel.

src2 InputArray

second input array or a scalar; when it is an array, it must have a single channel.

dst OutputArray

output array of type ref CV_8U that has the same size and the same number of channels as the input arrays.

cmpop CmpTypes

a flag, that specifies correspondence between the arrays (cv::CmpTypes)