InRange
OpenLvVision_OpenCv.lvlib:InRange.vim
Checks if array elements lie between the elements of two other arrays.
The function checks the range as follows:
- For every element of a single-channel input array:$ \texttt{dst}(I) = \texttt{lowerb}(I)_0 \leq \texttt{src}(I)_0 \leq \texttt{upperb}(I)_0 $
- For two-channel arrays:$ \texttt{dst}(I) = \texttt{lowerb}(I)_0 \leq \texttt{src}(I)_0 \leq \texttt{upperb}(I)_0 \land \texttt{lowerb}(I)_1 \leq \texttt{src}(I)_1 \leq \texttt{upperb}(I)_1 $
- And so forth.
That is, dst(I)
is set to 255 (all 1-bits) if src(I)
is within the specified 1D, 2D, 3D, ... box, and 0 otherwise.
When the lower and/or upper boundary parameters are scalars, the indices (I)
at lowerb
and upperb
in the above formulas should be omitted.
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. |
Src first input array or a image |
Lowerb inclusive lower boundary array or a image. |
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. |
Upperb inclusive upper boundary array or a image. |
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. |
Src out first input array or a image |
Lowerb out inclusive lower boundary array or a image. |
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. |
Upperb out inclusive upper boundary array or a image. |