Table of Contents

Method Phase

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Phase(InputArray, InputArray, OutputArray, bool)

Calculates the rotation angle of 2D vectors.

public static void Phase(InputArray x, InputArray y, OutputArray angle, bool angleInDegrees = false)

Parameters

x InputArray

input floating-point array of x-coordinates of 2D vectors.

y InputArray

input array of y-coordinates of 2D vectors; it must have the same size and the same type as x.

angle OutputArray

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

angleInDegrees bool

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