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

OpenLvVision_OpenCv.lvlib:InRange.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

Src

first input array or a image

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

Lowerb

inclusive lower boundary array or a image.

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.

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

Upperb

inclusive upper boundary array or a image.

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

Src out

first input array or a image

iOpenLvVision__OpenCv_lvlib_Anythinglvclass

Lowerb out

inclusive lower boundary array or a image.

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.

iOpenLvVision__OpenCv_lvlib_Anythinglvclass

Upperb out

inclusive upper boundary array or a image.