cv::SURF does not clear input vectors (Bug #2779)


Added by Dorian Galvez about 12 years ago. Updated almost 12 years ago.


Status:Done Start date:2013-02-07
Priority:Normal Due date:
Assignee:Maria Dimashova % Done:

0%

Category:nonfree
Target version:2.4.5
Affected version:2.4.3 Operating System:
Difficulty: HW Platform:
Pull request:

Description

cv::SURF::operator() does not clear the input keypoint and descriptor vectors when new features are extracted.

Example:
function f(){
static cv::SURF surf_detector(400);
static vector<cv::KeyPoint> keys;
static vector<float> descs;
cv::Mat im = ...;
surf_detector(im, cv::Mat(), keys, descs);
...
}

Vectors keys and descs grow after each call to the function. This behaviour (which also happens in version 2.4.0) is not the same as in version 2.3.1, where vectors were cleared when calling ::operator().


Associated revisions

Revision 3391caf4
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #2779 from pemmanuelviel:kmeansppSquareDist

History

Updated by Kirill Kornyakov about 12 years ago

Maria, could you comment on that? It seems to me that there was a ticket or discussion regarding this issue...

  • Assignee changed from Vadim Pisarevsky to Maria Dimashova

Updated by Andrey Kamaev almost 12 years ago

If I remember correctly this bug was fixed some time ago.

  • Target version set to 2.4.5
  • Status changed from Open to Done

Also available in: Atom PDF