Commit 3d0e42f6 authored by berak's avatar berak

ximgproc: change M_PI to CV_PI in structured_edge_detection

parent ffdec479
......@@ -581,8 +581,8 @@ public:
{
int xysign = -((oxy[i] > 0) - (oxy[i] < 0));
o[i] = (atan((oyy[i] * xysign / (oxx[i] + 1e-5))) > 0) ? (float) fmod(
atan((oyy[i] * xysign / (oxx[i] + 1e-5))), M_PI) : (float) fmod(
atan((oyy[i] * xysign / (oxx[i] + 1e-5))) + M_PI, M_PI);
atan((oyy[i] * xysign / (oxx[i] + 1e-5))), CV_PI) : (float) fmod(
atan((oyy[i] * xysign / (oxx[i] + 1e-5))) + CV_PI, CV_PI);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment