mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Fix Windows build issues
* No /arch:SSE3 in MSVC * Warnings fixed or suppressed
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
|
||||
#if defined WIN32 || defined _WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user