1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Fix Windows build issues

* No /arch:SSE3 in MSVC
* Warnings fixed or suppressed
This commit is contained in:
Andrey Kamaev
2012-08-22 03:59:05 +04:00
parent 793e8b546d
commit f2a02feffa
12 changed files with 49 additions and 43 deletions
+3 -3
View File
@@ -86,7 +86,7 @@ int main(int argc, const char** argv)
break;
case MOG:
mog(d_frame, d_fgmask, 0.01);
mog(d_frame, d_fgmask, 0.01f);
break;
case MOG2:
@@ -127,7 +127,7 @@ int main(int argc, const char** argv)
break;
case MOG:
mog(d_frame, d_fgmask, 0.01);
mog(d_frame, d_fgmask, 0.01f);
mog.getBackgroundImage(d_bgimg);
break;
@@ -162,7 +162,7 @@ int main(int argc, const char** argv)
if (!bgimg.empty())
imshow("mean background image", bgimg);
char key = waitKey(30);
int key = waitKey(30);
if (key == 27)
break;
}
+2 -2
View File
@@ -1341,7 +1341,7 @@ TEST(MOG)
cv::gpu::MOG_GPU d_mog;
cv::gpu::GpuMat d_foreground;
d_mog(d_frame, d_foreground, 0.01);
d_mog(d_frame, d_foreground, 0.01f);
while (!TestSystem::instance().stop())
{
@@ -1350,7 +1350,7 @@ TEST(MOG)
TestSystem::instance().gpuOn();
d_mog(d_frame, d_foreground, 0.01);
d_mog(d_frame, d_foreground, 0.01f);
TestSystem::instance().gpuOff();
}