diff --git a/3rdparty/libjasper/CMakeLists.txt b/3rdparty/libjasper/CMakeLists.txt index 0478ef9d46..a6fb71ec57 100644 --- a/3rdparty/libjasper/CMakeLists.txt +++ b/3rdparty/libjasper/CMakeLists.txt @@ -19,9 +19,9 @@ file(GLOB lib_ext_hdrs jasper/*.h) add_library(${JASPER_LIBRARY} STATIC ${lib_srcs} ${lib_hdrs} ${lib_ext_hdrs}) -if(MSVC) +if(WIN32 AND NOT MINGW) add_definitions(-DJAS_WIN_MSVC_BUILD) -endif() +endif(WIN32 AND NOT MINGW) ocv_warnings_disable(CMAKE_C_FLAGS -Wno-implicit-function-declaration -Wno-uninitialized -Wmissing-prototypes -Wmissing-declarations -Wunused -Wshadow -Wsign-compare) ocv_warnings_disable(CMAKE_C_FLAGS /wd4013 /wd4018 /wd4101 /wd4244 /wd4267 /wd4715) # vs2005 diff --git a/CMakeLists.txt b/CMakeLists.txt index f9baf672eb..b644212c77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -337,9 +337,12 @@ include(cmake/OpenCVCompilerOptions.cmake REQUIRED) # ---------------------------------------------------------------------------- if(MSVC) include(cmake/OpenCVCRTLinkage.cmake REQUIRED) - add_definitions(-D_VARIADIC_MAX=10) endif(MSVC) +if(WIN32 AND NOT MINGW) + add_definitions(-D_VARIADIC_MAX=10) +endif(WIN32 AND NOT MINGW) + # ---------------------------------------------------------------------------- # CHECK FOR SYSTEM LIBRARIES, OPTIONS, ETC.. diff --git a/doc/tutorials/ios/hello/images/header_directive.png b/doc/tutorials/ios/hello/images/header_directive.png new file mode 100644 index 0000000000..7e41e0bd66 Binary files /dev/null and b/doc/tutorials/ios/hello/images/header_directive.png differ diff --git a/doc/tutorials/ios/hello/images/linking_opencv_ios.png b/doc/tutorials/ios/hello/images/linking_opencv_ios.png new file mode 100644 index 0000000000..cf82caf23c Binary files /dev/null and b/doc/tutorials/ios/hello/images/linking_opencv_ios.png differ diff --git a/doc/tutorials/ios/hello/images/output.png b/doc/tutorials/ios/hello/images/output.png new file mode 100644 index 0000000000..13d9433816 Binary files /dev/null and b/doc/tutorials/ios/hello/images/output.png differ diff --git a/doc/tutorials/ios/hello/images/view_did_load.png b/doc/tutorials/ios/hello/images/view_did_load.png new file mode 100644 index 0000000000..6573b1dcd4 Binary files /dev/null and b/doc/tutorials/ios/hello/images/view_did_load.png differ diff --git a/doc/tutorials/ios/image_manipulation/images/output.jpg b/doc/tutorials/ios/image_manipulation/images/output.jpg new file mode 100644 index 0000000000..5f55233ab3 Binary files /dev/null and b/doc/tutorials/ios/image_manipulation/images/output.jpg differ diff --git a/modules/gpu/perf/perf_calib3d.cpp b/modules/gpu/perf/perf_calib3d.cpp index f62185e007..274e1d8037 100644 --- a/modules/gpu/perf/perf_calib3d.cpp +++ b/modules/gpu/perf/perf_calib3d.cpp @@ -11,7 +11,16 @@ namespace { typedef pair pair_string; DEF_PARAM_TEST_1(ImagePair, pair_string); -PERF_TEST_P(ImagePair, Calib3D_StereoBM, Values(make_pair("gpu/perf/aloe.jpg", "gpu/perf/aloeR.jpg"))) +static pair_string make_string_pair(const string& a, const string& b) +{ +#ifdef _MSC_VER + return pair(a, b); +#else + return make_pair(a, b); +#endif +} + +PERF_TEST_P(ImagePair, Calib3D_StereoBM, Values(make_string_pair("gpu/perf/aloe.jpg", "gpu/perf/aloeR.jpg"))) { declare.time(5.0); @@ -57,7 +66,7 @@ PERF_TEST_P(ImagePair, Calib3D_StereoBM, Values(make_pair("gpu/p ////////////////////////////////////////////////////////////////////// // StereoBeliefPropagation -PERF_TEST_P(ImagePair, Calib3D_StereoBeliefPropagation, Values(make_pair("gpu/stereobp/aloe-L.png", "gpu/stereobp/aloe-R.png"))) +PERF_TEST_P(ImagePair, Calib3D_StereoBeliefPropagation, Values(make_string_pair("gpu/stereobp/aloe-L.png", "gpu/stereobp/aloe-R.png"))) { declare.time(10.0); @@ -93,7 +102,7 @@ PERF_TEST_P(ImagePair, Calib3D_StereoBeliefPropagation, Values(make_pair("gpu/stereobm/aloe-L.png", "gpu/stereobm/aloe-R.png"))) +PERF_TEST_P(ImagePair, Calib3D_StereoConstantSpaceBP, Values(make_string_pair("gpu/stereobm/aloe-L.png", "gpu/stereobm/aloe-R.png"))) { declare.time(10.0); @@ -129,7 +138,7 @@ PERF_TEST_P(ImagePair, Calib3D_StereoConstantSpaceBP, Values(make_pair("gpu/stereobm/aloe-L.png", "gpu/stereobm/aloe-disp.png"))) +PERF_TEST_P(ImagePair, Calib3D_DisparityBilateralFilter, Values(make_string_pair("gpu/stereobm/aloe-L.png", "gpu/stereobm/aloe-disp.png"))) { const cv::Mat img = readImage(GetParam().first, cv::IMREAD_GRAYSCALE); ASSERT_FALSE(img.empty()); diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index d53c17c40f..7a57b090c4 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -107,6 +107,7 @@ endif() if(WIN32) list(APPEND highgui_srcs src/cap_vfw.cpp src/cap_cmu.cpp src/cap_dshow.cpp) + list(APPEND HIGHGUI_LIBRARIES vfw32) endif(WIN32) if(HAVE_XINE)