Commit 00ea7fe9 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #6273 from Bleach665:vs2010_mser_sampl

parents d6060bbb 93e50dab
...@@ -187,7 +187,7 @@ static void onMouse(int event, int x, int y, int flags, void*) ...@@ -187,7 +187,7 @@ static void onMouse(int event, int x, int y, int flags, void*)
else else
rObs -= (float)0.1; rObs -= (float)0.1;
} }
float pi = (float)acos(-1.0); float pi = static_cast<float>(CV_PI);
if (thetaObs>pi) if (thetaObs>pi)
{ {
thetaObs = -2 * pi + thetaObs; thetaObs = -2 * pi + thetaObs;
...@@ -282,7 +282,7 @@ static void DrawOpenGLMSER(Mat img, Mat result) ...@@ -282,7 +282,7 @@ static void DrawOpenGLMSER(Mat img, Mat result)
break; break;
if (key == 0x20) if (key == 0x20)
rotateEnable = !rotateEnable; rotateEnable = !rotateEnable;
float pi = (float)acos(-1); float pi = static_cast<float>(CV_PI);
switch (key) { switch (key) {
case '5': case '5':
......
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