Skip to content

Commit 58244d6

Browse files
committed
Merge pull request #1297 from berak:ximgproc_pi
2 parents 09b08c5 + 3d0e42f commit 58244d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ximgproc/src/structured_edge_detection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ class StructuredEdgeDetectionImpl : public StructuredEdgeDetection
581581
{
582582
int xysign = -((oxy[i] > 0) - (oxy[i] < 0));
583583
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);
584+
atan((oyy[i] * xysign / (oxx[i] + 1e-5))), CV_PI) : (float) fmod(
585+
atan((oyy[i] * xysign / (oxx[i] + 1e-5))) + CV_PI, CV_PI);
586586
}
587587
}
588588

0 commit comments

Comments
 (0)