OpenLvVision_OpenCv.lvlib:GetRectSubPix.vim

Retrieves a pixel rectangle from an image with sub-pixel accuracy.

The function getRectSubPix extracts pixels from src:

$ \texttt{patch}(x, y) = \texttt{src}\!\left( x + \texttt{center.x} - (\texttt{dst.cols}-1)\cdot 0.5,\; y + \texttt{center.y} - (\texttt{dst.rows}-1)\cdot 0.5 \right) $

Pixel values at non-integer coordinates are retrieved using bilinear interpolation. Each channel of a multi-channel image is processed independently.

The input image must be either single-channel or three-channel. The center of the rectangle must lie inside the image, although parts of the rectangle may extend outside.

For detailed information, please refer to the OpenCV documentation

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

Source image.

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

Patch

Extracted patch that has the size patchSize and the same number of channels as src .

cnclst

PatchSize

Extracted patch that has the size patchSize and the same number of channels as src .

    ci32

    X

    ci32

    Y

cnclst

center

Floating point coordinates of the center of the extracted rectangle within the source image. The center must be inside the image.

    csgl

    X

    csgl

    Y

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

Patch

output image that has the size dsize and the same type as src .