Compare
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
andsrc2
have the same size):$ \texttt{dst}(I) = \texttt{src1}(I) \,\texttt{cmpop}\, \texttt{src2}(I) $ - Elements of
src1
with a scalarsrc2
(whensrc2
is constructed fromScalar
or has a single element):$ \texttt{dst}(I) = \texttt{src1}(I) \,\texttt{cmpop}\, \texttt{src2} $ - A scalar
src1
with elements ofsrc2
(whensrc1
is constructed fromScalar
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
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. |
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. |
code |
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. |
Src1 first input array or a image; when it is an array, it must have a single channel. |
Src2 second input array or a image; when it is an array, it must have a single channel. |
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. |
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. |
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. |
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. |
code |
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. |
Src1 out first input array or a image; when it is an array, it must have a single channel. |
Src2 out second input array or a image; when it is an array, it must have a single channel. |
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. |