OpenLvVision_OpenCv.lvlib:Compare.vim

Performs the per-element comparison of two arrays.

The function compare performs element-wise comparison for:

  • Two arrays (when src1 and src2 have the same size):
    $ \texttt{dst}(I) = \texttt{src1}(I) \,\texttt{cmpop}\, \texttt{src2}(I) $
  • Elements of src1 with a scalar src2 (when src2 is constructed from Scalar or has a single element):
    $ \texttt{dst}(I) = \texttt{src1}(I) \,\texttt{cmpop}\, \texttt{src2} $
  • A scalar src1 with elements of src2 (when src1 is constructed from Scalar or has a single element):
    $ \texttt{dst}(I) = \texttt{src1} \,\texttt{cmpop}\, \texttt{src2}(I) $

When the comparison result is true, the corresponding element of the output array is set to 255.

For detailed information, please refer to the OpenCV documentation

OpenLvVision_OpenCv.lvlib:Compare.vim

cerrcodeclst

error in

error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    cbool

    status

    status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    ci32

    code

    cstr

    source

    source describes the origin of the error or warning.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

Src1

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

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

Src2

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

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

Dst

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

cenum

cmpType

a flag, that specifies correspondence between the arrays or images:

CMP_EQ src1 is equal to src2.

CMP_GT src1 is greater than src2.

CMP_GE src1 is greater than or equal to src2.

CMP_LT src1 is less than src2.

CMP_LE src1 is less than or equal to src2.

CMP_NE src1 is unequal to src2.

ierrcodeclst

error out

error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    ibool

    status

    status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    ii32

    code

    istr

    source

    source describes the origin of the error or warning.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

iOpenLvVision__OpenCv_lvlib_Anythinglvclass

Src1 out

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

iOpenLvVision__OpenCv_lvlib_Anythinglvclass

Src2 out

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

iOpenLvVision__OpenCv_lvlib_Anythinglvclass

Dst out

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