I am trying to prepare an SVM classifier for recognizing pedestrians in a 64x128 image set. I already did this using HOG functions, and now I need to implement the same thing using SIFT and ORB. For HOG functions, I always had the same number of functions (3780), so the matrix for the train was image_number at 3780. Now, using the SIFT extractor, I get key points of different sizes. How to create a matrix for the classifier using these key points of different sizes?
Many thanks for your help!
I solved the problem with descriptors by putting all of them on the same line. However, I found that most descriptors have a value of 0, so the classifier does not work. Do you know how I can solve this problem?
This is a piece of code:
DenseFeatureDetector detector; SiftDescriptorExtractor descriptor; vector<KeyPoint> keypoints;
source share