PyramidAdaptedFeatureDetector with image mask throws exception (Bug #1206)


Added by Do Bi over 13 years ago. Updated over 13 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:Maria Dimashova % Done:

0%

Category:features2d
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

"(-215) mask.empty() || (mask.type() CV_8UC1 && mask.size() image.size())"
is thrown when using PyramidAdaptedFeatureDetector with an image mask.

Here is a minimum example to reproduce this error:

#include "opencv2/features2d/features2d.hpp"
using namespace cv;
int main() {
Mat image(100, 100, CV_8UC1);
Mat mask(100, 100, CV_8UC1);
std::vector<KeyPoint> keypoints;
Ptr<FeatureDetector> fast(new FastFeatureDetector());
Ptr<FeatureDetector> pyr(new PyramidAdaptedFeatureDetector(fast));
pyr->detect(image, keypoints, mask);
return 0;
}


Associated revisions

Revision 370130e4
Added by Maria Dimashova over 13 years ago

fixed PyramidAdaptedFeatureDetector (when mask is not empty) (#1206)

Revision 6a400674
Added by Andrey Pavlenko over 11 years ago

Merge pull request #1206 from StevenPuttemans:feature_3169

Revision ed76b2f9
Added by Steven Puttemans over 11 years ago

Like mentioned by Andrei Pavlenko after merging pullrequest #1206, a wrong
ReST directive was used. Also fixed some other ReST directives that were
not correct and removed some warnings during buildbot checks.

History

Updated by Maria Dimashova over 13 years ago

Many thanks! Bug was fixed in r5931.

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF