Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

FeatureDetector with mask input (third parameter)

Hi there,

I am trying to use the FeatureDetector with SIFT/SURF. Using it without a mask, just like:

detector->detect(cv::Mat& input, std::vector<cv::keypoint>& keypoints) works perfect for me.

I am getting in problems when I try to use an additional mask. The documentation tells me to use a "8-bit integer matrix with non-zero values"

const Mat& mask=Mat()

Unfortunately, I do not understand what data type is meant here. Is this a CV_8U or CV_8S? I have tried several times, but I always get a segmentation fault.

Could you please help me what I am doing wrong? Thanks a lot! Johannes