OpenLvVision_OpenCv.lvlib:CartToPolar.vim

Calculates the magnitude and angle of 2D vectors.

$ \begin{aligned} \texttt{magnitude}(I) &= \sqrt{\texttt{x}(I)^2 + \texttt{y}(I)^2}, \\ \texttt{angle}(I) &= \texttt{atan2}\!\big(\texttt{y}(I),\, \texttt{x}(I)\big)\,[\cdot\, 180/\pi] \end{aligned} $

The angles are computed with an accuracy of approximately 0.3 degrees. For the point (0,0), the angle is set to 0.

For detailed information, please refer to the OpenCV documentation

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

a flag, indicating whether the angles are measured in radians (which is by default), or in degrees.

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

magnitude

output array of magnitudes of the same size and type as x.

    idbl

i1ddbl

angle

output array of angles that has the same size and type as x; the angles are measured in radians (from 0 to 2*Pi) or in degrees (0 to 360 degrees).

    idbl