OpenLvVision_OpenCv.lvlib:Phase.vim

Calculates the rotation angle of 2D vectors.

The function phase calculates the rotation angle of each 2D vector formed from the corresponding elements of x and y:

$ \texttt{angle}(I) = \texttt{atan2}\!\big(\texttt{y}(I),\, \texttt{x}(I)\big) $

The angle estimation accuracy is about 0.3 degrees. When x(I) = 0 and y(I) = 0, the corresponding angle(I) is set to 0.

For detailed information, please refer to the OpenCV documentation

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

c1ddbl

X

array of x-coordinates; this must be a single-precision or double-precision floating-point array.

    cdbl

c1ddbl

Y

array of y-coordinates, that must have the same size and same type as x.

    cdbl

cbool

angleInDegrees

when true, the function calculates the angle in degrees, otherwise, they are measured in radians.

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.

i1ddbl

angle

output array of vector angles; it has the same size and same type as x .

    idbl