mirror of
https://github.com/opencv/opencv.git
synced 2024-12-18 03:18:01 +08:00
temporarily turn off TBB threading when computing SURF descriptors (as the parallel version seems to produce different descriptors on each run)
This commit is contained in:
parent
4113d5da43
commit
2c0015e765
@ -886,9 +886,11 @@ cvExtractSURF( const CvArr* _img, const CvArr* _mask,
|
||||
|
||||
|
||||
if ( N > 0 )
|
||||
cv::parallel_for(cv::BlockedRange(0, N),
|
||||
cv::SURFInvoker(¶ms, keypoints, descriptors, img, sum) );
|
||||
|
||||
{
|
||||
//cv::parallel_for(cv::BlockedRange(0, N),
|
||||
// cv::SURFInvoker(¶ms, keypoints, descriptors, img, sum) );
|
||||
cv::SURFInvoker(¶ms, keypoints, descriptors, img, sum)(cv::BlockedRange(0, N));
|
||||
}
|
||||
|
||||
/* remove keypoints that were marked for deletion */
|
||||
for ( i = 0; i < N; i++ )
|
||||
|
Loading…
Reference in New Issue
Block a user