cv::SURF does not clear input vectors (Bug #2779)
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
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