How to set the suitable parameters for the feature detectors?
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);
Hmm Harris Corner Detector should be able to find some features from these images. But what are you trying to achieve. If you need a description for classification purposes, why not run HAAR wavelets or LBP features on the image and use the returned descriptors?
Thanks for your suggestion. I now turn to use the combination of Gabor filter and LBP for extracting the features to train the classifier. Regarding your suggestion, I tried to use SURF and resized it to double size, but only 4 keypoints can be found out. I think the Harris corner detector is not possible to classify the character, but HAAR wavelets and LBP features may be more suitable to be used according to my observation.
@StevenPuttemans, I'd like to know if I want to implement real time recognition, do you suggest that I resize the character to a bigger size to 60*90 for computing the LBP or for a better accuracy, or just remain the same size?
I would keep it small, then you will train the overall structure instead of training insignificant noise from upscaling which will result in overfitting of your training data.
Get it. Thanks for your suggestion!
Please help me ! It's the following up question. http://answers.opencv.org/question/64...@StevenPuttemans