From 93e50dabcd7c096a44d43eddbf1b564085442a5b Mon Sep 17 00:00:00 2001 From: Bleach666 Date: Wed, 16 Mar 2016 16:51:20 +0200 Subject: [PATCH] fix build detect_mser sample in vc2010 --- samples/cpp/detect_mser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/cpp/detect_mser.cpp b/samples/cpp/detect_mser.cpp index a9a3fa3298..a6a020c39c 100644 --- a/samples/cpp/detect_mser.cpp +++ b/samples/cpp/detect_mser.cpp @@ -187,7 +187,7 @@ static void onMouse(int event, int x, int y, int flags, void*) else rObs -= (float)0.1; } - float pi = (float)acos(-1.0); + float pi = static_cast(CV_PI); if (thetaObs>pi) { thetaObs = -2 * pi + thetaObs; @@ -282,7 +282,7 @@ static void DrawOpenGLMSER(Mat img, Mat result) break; if (key == 0x20) rotateEnable = !rotateEnable; - float pi = (float)acos(-1); + float pi = static_cast(CV_PI); switch (key) { case '5':