Commit cb3711d5 authored by Maria Dimashova's avatar Maria Dimashova

fixed SURF::operator() (#423)

parent b12588f7
......@@ -890,7 +890,9 @@ void SURF::operator()(const Mat& img, const Mat& mask,
cvExtractSURF(&_img, pmask, &kp.seq, &d, storage,
*(const CvSURFParams*)this, useProvidedKeypoints);
if( !useProvidedKeypoints )
// input keypoints can be filtered in cvExtractSURF()
if( !useProvidedKeypoints || (useProvidedKeypoints && keypoints.size() != kp.size()) )
{
Seq<CvSURFPoint>::iterator it = kp.begin();
size_t i, n = kp.size();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment