PyramidAdaptedFeatureDetector with image mask throws exception (Bug #1206)
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
fixed PyramidAdaptedFeatureDetector (when mask is not empty) (#1206)
Merge pull request #1206 from StevenPuttemans:feature_3169
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