mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Started top-level CMakeLists.txt file reorganization: cmake scripts are moved to separate folder; refactored BUILD_*, INSTALL_*, ENABLE_*, USE_*, WITH_* options.
This commit is contained in:
@@ -198,19 +198,6 @@ CV_INLINE IppiSize ippiSize(int width, int height)
|
||||
int _begin, _end, _grainsize;
|
||||
};
|
||||
|
||||
|
||||
#ifdef HAVE_THREADING_FRAMEWORK
|
||||
#include "opencv2/core/threading_framework.hpp"
|
||||
|
||||
template<typename Body>
|
||||
static void parallel_for( const BlockedRange& range, const Body& body )
|
||||
{
|
||||
tf::parallel_for<Body>(range, body);
|
||||
}
|
||||
|
||||
typedef tf::ConcurrentVector<Rect> ConcurrentRectVector;
|
||||
typedef tf::ConcurrentVector<double> ConcurrentDoubleVector;
|
||||
#else
|
||||
template<typename Body> static inline
|
||||
void parallel_for( const BlockedRange& range, const Body& body )
|
||||
{
|
||||
@@ -218,7 +205,6 @@ CV_INLINE IppiSize ippiSize(int width, int height)
|
||||
}
|
||||
typedef std::vector<Rect> ConcurrentRectVector;
|
||||
typedef std::vector<double> ConcurrentDoubleVector;
|
||||
#endif
|
||||
|
||||
template<typename Iterator, typename Body> static inline
|
||||
void parallel_do( Iterator first, Iterator last, const Body& body )
|
||||
|
||||
@@ -1076,7 +1076,7 @@ void CascadeClassifier::detectMultiScale( const Mat& image, vector<Rect>& object
|
||||
|
||||
int stripCount, stripSize;
|
||||
|
||||
#if defined(HAVE_TBB) || defined(HAVE_THREADING_FRAMEWORK)
|
||||
#ifdef HAVE_TBB
|
||||
const int PTS_PER_THREAD = 1000;
|
||||
stripCount = ((processingRectSize.width/yStep)*(processingRectSize.height + yStep-1)/yStep + PTS_PER_THREAD/2)/PTS_PER_THREAD;
|
||||
stripCount = std::min(std::max(stripCount, 1), 100);
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
if(WIN32 AND CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# CMake file for python support
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user