updated Retina module code for more flexible parallelisation : TBB parallel for loops...
authorAlexandre Benoit <benoit.alexandre.vision@gmail.com>
Fri, 31 Aug 2012 12:55:32 +0000 (14:55 +0200)
committerAlexandre Benoit <benoit.alexandre.vision@gmail.com>
Fri, 31 Aug 2012 12:55:32 +0000 (14:55 +0200)
modules/contrib/doc/contrib.rst
modules/contrib/src/templatebuffer.hpp

index 85a55a3..c3ceb20 100644 (file)
@@ -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>
index 50aedce..1ce4d59 100644 (file)
@@ -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)