Ask Your Question

SIFT Feature Descriptor Doesn't Work With ORB Keypoinys

asked 2012-12-28 05:40:15 -0600

aliciadominica gravatar image

As stated in the title, SIFT Feature Descriptor doesn't work with ORB keypoints, I changed the useProvidedKeypoints to true but it still doesn't work and I get the "Vector subscript out of range" error in the extractor.compute line. Part of the code is below.

ORB detector(500);
detector.detect( img1, keypointsB );

SiftDescriptorExtractor extractor;
extractor.compute( img1, keypointsB, descriptorsB);
edit retag flag offensive close merge delete


I just get the same problem... Have you find a solution since ?

arie55 gravatar imagearie55 ( 2013-01-23 18:52:05 -0600 )edit

No, I couldn't.

aliciadominica gravatar imagealiciadominica ( 2013-02-26 03:07:17 -0600 )edit

But they are not supposed to work together.

Rui Marques gravatar imageRui Marques ( 2013-03-04 18:03:21 -0600 )edit

@arie55 - I think I found a solution, check out my answer.

Shai gravatar imageShai ( 2013-05-13 03:01:33 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2013-05-13 03:00:18 -0600

Shai gravatar image

See this link.
It seems like the error stems from the fact that SIFT tune its octave automatically, while ORB use a fixed umber of octaves.

A workaround might be either to tune the nlevels params of the ORB class according to the maximal detected octave prior to descriptor extraction.
Alternatively, you may reject key points with octave larger than ORB's nlevels.

edit flag offensive delete link more

answered 2012-12-30 14:16:31 -0600

Emmanuel gravatar image

Not sure of what's happening in your case because I can't find the documentation for the SiftDescriptorExtractor class. Did you however try with the original SIFT class ? The code to compute the descriptors in your case becomes:

cv::SIFT siftOperator;
cv::Mat descriptorsB;
siftOperator(img1, cv::Mat(), keypointsB, descriptorsB, true);
edit flag offensive delete link more


I tried it both ways to no avail. It didn't work :/

aliciadominica gravatar imagealiciadominica ( 2013-01-04 07:26:47 -0600 )edit

Question Tools

1 follower


Asked: 2012-12-28 05:40:15 -0600

Seen: 818 times

Last updated: May 13 '13