We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 09b08c5 + 3d0e42f commit 58244d6Copy full SHA for 58244d6
modules/ximgproc/src/structured_edge_detection.cpp
@@ -581,8 +581,8 @@ class StructuredEdgeDetectionImpl : public StructuredEdgeDetection
581
{
582
int xysign = -((oxy[i] > 0) - (oxy[i] < 0));
583
o[i] = (atan((oyy[i] * xysign / (oxx[i] + 1e-5))) > 0) ? (float) fmod(
584
- atan((oyy[i] * xysign / (oxx[i] + 1e-5))), M_PI) : (float) fmod(
585
- 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);
586
}
587
588
0 commit comments