Ask Your Question

Revision history [back]

You should use phase function

Mat xxx = (Mat_<float>(2, 2) << 1, 2, 3, 4);
Mat yyy = (Mat_<float>(2, 2) << 1, 2, 4,5),angle;
phase(xxx,yyy,angle);
cout<<angle;

results are :

Mat xxx = (Mat_<float>(2, 2) << 1, 2, 3, 4);
Mat yyy = (Mat_<float>(2, 2) << 1, 2, 4,5),angle;
phase(xxx,yyy,angle);
cout<<angle;

You should use phase function

Mat xxx = (Mat_<float>(2, 2) << 1, 2, 3, 4);
Mat yyy = (Mat_<float>(2, 2) << 1, 2, 4,5),angle;
4, 5),angle;
phase(xxx,yyy,angle);
cout<<angle;

results are :

Mat xxx = (Mat_<float>(2, 2) << 1, 2, 3, 4);
Mat yyy = (Mat_<float>(2, 2) << 1, 2, 4,5),angle;
phase(xxx,yyy,angle);
cout<<angle;
[0.78523159, 0.78523159;
 0.92740309, 0.89609587]