Merge remote-tracking branch 'upstream/3.4' into merge-3.4
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Thu, 11 Oct 2018 23:40:55 +0000 (23:40 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Fri, 12 Oct 2018 10:05:55 +0000 (10:05 +0000)
1  2 
CMakeLists.txt
cmake/OpenCVModule.cmake
cmake/templates/cvconfig.h.in
modules/core/src/ocl.cpp
modules/core/src/parallel.cpp
modules/core/src/precomp.hpp
modules/imgproc/src/pyramids.cpp
modules/objdetect/include/opencv2/objdetect.hpp
modules/stitching/src/matchers.cpp
platforms/js/build_js.py

diff --cc CMakeLists.txt
@@@ -282,7 -282,7 +282,8 @@@ OCV_OPTION(WITH_PROTOBUF       "Enable 
  OCV_OPTION(WITH_IMGCODEC_HDR   "Include HDR support"                         ON)
  OCV_OPTION(WITH_IMGCODEC_SUNRASTER "Include SUNRASTER support"               ON)
  OCV_OPTION(WITH_IMGCODEC_PXM   "Include PNM (PBM,PGM,PPM) and PAM formats support" ON)
 +OCV_OPTION(WITH_IMGCODEC_PFM   "Include PFM formats support"                 ON)
+ OCV_OPTION(WITH_QUIRC          "Include library QR-code decoding"            ON)
  
  # OpenCV build components
  # ===================================================
Simple merge
Simple merge
Simple merge
@@@ -444,10 -417,19 +444,19 @@@ static int numThreads = -1
      #else
          static tbb::task_scheduler_init tbbScheduler(tbb::task_scheduler_init::deferred);
      #endif
 -#elif defined HAVE_CSTRIPES
 -// nothing for C=
 +#elif defined HAVE_HPX
 +// nothing for HPX
  #elif defined HAVE_OPENMP
- static int numThreadsMax = omp_get_max_threads();
+ static inline int _initMaxThreads()
+ {
+     int maxThreads = omp_get_max_threads();
+     if (!utils::getConfigurationParameterBool("OPENCV_FOR_OPENMP_DYNAMIC_DISABLE", false))
+     {
+         omp_set_dynamic(maxThreads);
+     }
+     return numThreads;
+ }
+ static int numThreadsMax = _initMaxThreads();
  #elif defined HAVE_GCD
  // nothing for GCD
  #elif defined WINRT
Simple merge
Simple merge
Simple merge
@@@ -113,11 -112,10 +113,11 @@@ class Builder
                 "-DWITH_ITT=OFF",
                 "-DBUILD_ZLIB=ON",
                 "-DBUILD_opencv_apps=OFF",
-                "-DBUILD_opencv_calib3d=ON",
+                "-DBUILD_opencv_calib3d=ON",  # No bindings provided. This module is used as a dependency for other modules.
                 "-DBUILD_opencv_dnn=ON",
                 "-DBUILD_opencv_features2d=ON",
--               "-DBUILD_opencv_flann=OFF",
++               "-DBUILD_opencv_flann=ON",  # No bindings provided. This module is used as a dependency for other modules.
 +               "-DBUILD_opencv_gapi=OFF",
                 "-DBUILD_opencv_ml=OFF",
                 "-DBUILD_opencv_photo=OFF",
                 "-DBUILD_opencv_imgcodecs=OFF",