pull/1000/head
Ivan Korolev 12 years ago
parent 98f6a4a615
commit fc82150edc
  1. 6
      modules/nonfree/src/sift.cpp

@ -774,9 +774,6 @@ void SIFT::operator()(InputArray _image, InputArray _mask,
findScaleSpaceExtrema(gpyr, dogpyr, keypoints);
KeyPointsFilter::removeDuplicated( keypoints );
if( !mask.empty() )
KeyPointsFilter::runByPixelsMask( keypoints, mask );
if( nfeatures > 0 )
KeyPointsFilter::retainBest(keypoints, nfeatures);
//t = (double)getTickCount() - t;
@ -791,6 +788,9 @@ void SIFT::operator()(InputArray _image, InputArray _mask,
kpt.pt *= scale;
kpt.size *= scale;
}
if( !mask.empty() )
KeyPointsFilter::runByPixelsMask( keypoints, mask );
}
else
{

Loading…
Cancel
Save