OpenLvVision_OpenCv.lvlib:PolarToCart.vim

Calculates x and y coordinates of 2D vectors from their magnitude and angle.

The function cv::polarToCart calculates the Cartesian coordinates of each 2D vector represented by the corresponding elements of magnitude and angle:

$ \begin{aligned} \texttt{x}(I) &= \texttt{magnitude}(I)\,\cos(\texttt{angle}(I)), \\ \texttt{y}(I) &= \texttt{magnitude}(I)\,\sin(\texttt{angle}(I)) \end{aligned} $

The relative accuracy of the estimated coordinates is approximately 1e-6.

For detailed information, please refer to the OpenCV documentation

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

magnitude

input floating-point array of magnitudes of 2D vectors; it can be an empty matrix (=Mat()), in this case, the function assumes that all the magnitudes are =1; if it is not empty, it must have the same size and type as angle.

    cdbl

c1ddbl

angle

input floating-point array of angles of 2D vectors.

    cdbl

cbool

angleInDegrees

when true, the input angles are measured 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

X

output array of x-coordinates of 2D vectors; it has the same size and type as angle.

    idbl

i1ddbl

Y

output array of y-coordinates of 2D vectors; it has the same size and type as angle.

    idbl