OpenLvVision_OpenCv.lvlib:GetRotationMatrix2D.vi

Calculates an affine matrix of 2D rotation.

The function calculates the following transformation matrix:

$ \begin{bmatrix} \alpha & \beta & (1-\alpha)\cdot \texttt{center.x} - \beta \cdot \texttt{center.y} \\ -\beta & \alpha & \beta \cdot \texttt{center.x} + (1-\alpha)\cdot \texttt{center.y} \end{bmatrix} $

where

$ \begin{aligned} \alpha &= \texttt{scale} \cdot \cos(\texttt{angle}) \\ \beta &= \texttt{scale} \cdot \sin(\texttt{angle}) \end{aligned} $

The transformation maps the rotation center to itself. If this is not the desired behavior, adjust the translation (shift) terms accordingly.

For detailed information, please refer to the OpenCV documentation

OpenLvVision_OpenCv.lvlib:GetRotationMatrix2D.vi

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.

cdbl

Angle

Rotation angle in degrees. Positive values mean counter-clockwise rotation (the coordinate origin is assumed to be the top-left corner).

cdbl

Scale

Isotropic scale factor.

cnclst

Point

    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.

i2ddbl

Result

    idbl

    Numeric