Attention! This forum will be made read-only by Dec-20. Please migrate to https://forum.opencv.org. Most of existing active users should've received invitation by e-mail.
Ask Your Question
0

Use extended parameter for Surf descriptor

asked 2017-05-04 07:15:22 -0500

DEHANDPI gravatar image

Hi, I want to use the extended parameter for Surf algorithm. Here is my code :

SurfFeatureDetector detector2(minHessian);
detector2.extended=1;

and then

extractor2.compute(img, keypoints_4, descriptors2);
cout<<"descriptors2   "<<descriptors2.rows<<" +  "<<descriptors2.cols<<endl;

and the result is:

descriptors2 168 + 64

but I want my Surf descriptor to have 128 columns with extendedparameter. How is it possible to do this? Thanks

edit retag flag offensive close merge delete

Comments

you're setting the flag on detector2, but use extractor2 to extract features ?

rather use only 1 , single instance, and call detectAndCompute()

berak gravatar imageberak ( 2017-05-04 07:27:35 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-04 07:54:33 -0500

DEHANDPI gravatar image

Thanks berak, I thought of that too. I managed to correct it by setting the extended to the extractor, too and it works

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-05-04 07:15:22 -0500

Seen: 169 times

Last updated: May 04 '17