изменить размер дескриптора в SURF

Я пытаюсь изменить размер дескриптора на 128 вместо 64 в openCV.

кто-нибудь знает, как я могу изменить это

вот часть моего кода

{    
    SurfFeatureDetector detector( minHessian , 1 , 1 , 1 , 0 ); // try to get most number of  keypoint for matching 
std::vector<KeyPoint> keypoints_object, keypoints_scene;
detector.detect( img_object, keypoints_object );
detector.detect( img_scene, keypoints_scene );

//-- Step 2: Calculate descriptors (feature vectors)
SurfDescriptorExtractor extractor ;
Mat descriptors_object, descriptors_scene;
extractor.compute( img_object, keypoints_object, descriptors_object );
extractor.compute( img_scene, keypoints_scene, descriptors_scene );

}

Заранее спасибо


person seereen    schedule 09.05.2013    source источник


Ответы (1)


Параметр Extended отвечает за размер дескрипторов. Установите его в 1 (true), и 128-элементные дескрипторы должны быть рассчитаны.

SurfDescriptorExtractor extractor(hessianThreshold, nOctaves, nOctaveLayers,  
                                                        ***extended***, upright);
person mada    schedule 10.05.2013
comment
Я уже делал это в детекторе SurfFeatureDetector(minHessian, 1, 1, 1, 0); мне нужно сделать это снова для экстрактора? - person seereen; 14.05.2013