mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
updated Retina module code for more flexible parallelisation : TBB parallel for loops are replaced by opencv parallel_for_ wrapper... compile error corrected
This commit is contained in:
parent
5a6114e299
commit
37fe2a252a
@ -9,4 +9,4 @@ The module contains some recently added functionality that has not been stabiliz
|
||||
|
||||
stereo
|
||||
FaceRecognizer Documentation <facerec/index>
|
||||
retina Documentation <retina/index>
|
||||
Retina Documentation <retina/index>
|
||||
|
@ -388,8 +388,8 @@ public:
|
||||
std::cout<<"this->min()"<<this->min()<<"minThreshold="<<minThreshold<<"updatedLowValue="<<updatedLowValue<<std::endl;
|
||||
// clipping values outside than the updated thresholds
|
||||
bufferPTR=this->Buffer();
|
||||
#ifdef MAKE_PARALLEL // call the TemplateBuffer TBB clipping method
|
||||
parallel_for_(tbb::blocked_range<size_t>(0,this->size()), Parallel_clipBufferValues<type>(bufferPTR, updatedLowValue, updatedHighValue));
|
||||
#ifdef MAKE_PARALLEL // call the TemplateBuffer multitreaded clipping method
|
||||
parallel_for_(cv::Range(0,this->size()), Parallel_clipBufferValues<type>(bufferPTR, updatedLowValue, updatedHighValue));
|
||||
#else
|
||||
|
||||
for (unsigned int i=0;i<this->size();++i, ++bufferPTR)
|
||||
|
Loading…
Reference in New Issue
Block a user