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
|
stereo
|
||||||
FaceRecognizer Documentation <facerec/index>
|
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;
|
std::cout<<"this->min()"<<this->min()<<"minThreshold="<<minThreshold<<"updatedLowValue="<<updatedLowValue<<std::endl;
|
||||||
// clipping values outside than the updated thresholds
|
// clipping values outside than the updated thresholds
|
||||||
bufferPTR=this->Buffer();
|
bufferPTR=this->Buffer();
|
||||||
#ifdef MAKE_PARALLEL // call the TemplateBuffer TBB clipping method
|
#ifdef MAKE_PARALLEL // call the TemplateBuffer multitreaded clipping method
|
||||||
parallel_for_(tbb::blocked_range<size_t>(0,this->size()), Parallel_clipBufferValues<type>(bufferPTR, updatedLowValue, updatedHighValue));
|
parallel_for_(cv::Range(0,this->size()), Parallel_clipBufferValues<type>(bufferPTR, updatedLowValue, updatedHighValue));
|
||||||
#else
|
#else
|
||||||
|
|
||||||
for (unsigned int i=0;i<this->size();++i, ++bufferPTR)
|
for (unsigned int i=0;i<this->size();++i, ++bufferPTR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user