Function opencv::gapi::polar_to_cart
source · pub fn polar_to_cart(
magnitude: &GMat,
angle: &GMat,
angle_in_degrees: bool
) -> Result<Tuple<(GMat, GMat)>>Expand description
Calculates x and y coordinates of 2D vectors from their magnitude and angle.
The function polarToCart calculates the Cartesian coordinates of each 2D
vector represented by the corresponding elements of magnitude and angle:
The relative accuracy of the estimated coordinates is about 1e-6.
First output is a matrix of x-coordinates of 2D vectors. Second output is a matrix of y-coordinates of 2D vectors. Both output must have the same size and depth as input matrices.
Note: Function textual ID is “org.opencv.core.math.polarToCart”
Parameters
- magnitude: input floating-point [CV_32FC1] matrix (1xN) of magnitudes of 2D vectors;
- angle: input floating-point [CV_32FC1] matrix (1xN) of angles of 2D vectors.
- angleInDegrees: when true, the input angles are measured in degrees, otherwise, they are measured in radians.
See also
cartToPolar, exp, log, pow, sqrt
C++ default parameters
- angle_in_degrees: false