From 3d0e42f655b468bb33b13d1e898ee9139e04fe0f Mon Sep 17 00:00:00 2001 From: berak <px1704@web.de> Date: Thu, 27 Jul 2017 14:23:18 +0200 Subject: [PATCH] ximgproc: change M_PI to CV_PI in structured_edge_detection --- modules/ximgproc/src/structured_edge_detection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ximgproc/src/structured_edge_detection.cpp b/modules/ximgproc/src/structured_edge_detection.cpp index 5bb45f17f..fa0851e5f 100644 --- a/modules/ximgproc/src/structured_edge_detection.cpp +++ b/modules/ximgproc/src/structured_edge_detection.cpp @@ -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); } }