OpenLvVision_OpenCv.lvlib:PerspectiveTransform.vim

Performs the perspective matrix transformation of vectors.

The function cv::perspectiveTransform transforms every element of src by treating it as a 2D or 3D vector, in the following way:

$ (x, y, z) \rightarrow (x'/w, y'/w, z'/w) $

where the intermediate 4D vector is calculated as:

$ (x', y', z', w') = \texttt{mat} \cdot \begin{bmatrix} x \\ y \\ z \\ 1 \end{bmatrix} $

and the scale factor $w$ is defined as:

$ w = \begin{cases} w' & \text{if } w' \neq 0 \\ \infty & \text{otherwise} \end{cases} $

In the case of 2D vector transformation $(x, y)$, the $z$ component is omitted and the matrix mat is typically $3 \times 3$ or $4 \times 4$. The function is commonly used for warping images or projecting 3D points onto a 2D plane with perspective distortion.

For detailed information, please refer to the OpenCV documentation

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

c1dnclst

Src

Floating point 1D array.

Each element is a 2D/3D vector to be transformed.

    cnclst

    Point

      csgl

      X

      csgl

      Y

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

M

3x3 or 4x4 floating-point transformation matrix.

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.

i1dnclst

Dst

output array of the same size and type as src.

    inclst

    Point

      isgl

      X

      isgl

      Y