Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to set the suitable parameters for the feature detectors?

image description image description image description

I used a FastFeatureDetector, MserFeatureDetector and DenseFeatureDetector to extract keypoints. However, under the default setting, no keypoints can be detected. Could anyone suggest parameter settings for these detectors for a small image size like about 20*30 so that enough keypoints can be found out? Thanks in advance.

vector< KeyPoint > kpts_1,kpts_2,kpts_3;
Mat descriptor1,descriptor2,descriptor3;
Mat FeaturedescribeVector;  

FastFeatureDetector detector1(50);
BriefDescriptorExtractor extractor(32); 
detector1.detect(src, kpts_1);
extractor.compute ( src, kpts_1, descriptor1 ); 
FeaturedescribeVector.push_back(descriptor1);

MserFeatureDetector detector2(50);  
detector2.detect(src, kpts_2);
extractor.compute ( src, kpts_2, descriptor2 ); 
FeaturedescribeVector.push_back(descriptor2);

DenseFeatureDetector detector3(50); 
detector3.detect(src, kpts_3);
extractor.compute ( src, kpts_3, descriptor3 ); 
FeaturedescribeVector.push_back(descriptor3);