FREAK descriptor extractor returns empty Mat

asked 2015-03-05 08:50:35 -0600

thdrksdfthmn gravatar image

updated 2015-03-05 09:26:23 -0600

I have a detector (Dense) and when I extract the descriptors I get a Mat with 0 rows and 64 columns:

KeyPointVector keypoints;
m_detector->detect(image, keypoints);
cv::Mat descriptors;
m_extractor->compute(image, keypoints, descriptors); // keypoints is not empty

Am I doing something wrong? Or FREAK extractor does not work with the Dense?


I have also tried with other detectors, and the results are here:

FAST + FREAK => descriptors(cols = 64, rows = 0)
STAR + FREAK => descriptors(cols = 0, rows = 0)
ORB + FREAK => descriptors(cols = 0, rows = 0)
BRISK + FREAK => descriptors(cols = 0, rows = 0)
MSER + FREAK => descriptors(cols = 64, rows = 0)
GFTT + FREAK => descriptors(cols = 64, rows = 0)
HARRIS + FREAK => descriptors(cols = 64, rows = 0)
Dense + FREAK => descriptors(cols = 64, rows = 0)
SimpleBlob + FREAK => descriptors(cols = 64, rows = 0)

Could it be because of the image size? I am using images of cols = 144, rows = 33. Or should the image be colored?

edit retag flag offensive close merge delete

Comments

did you try another one, like Fast ? (iirc gftt only returns valid points, but no octave, response or angle)

berak gravatar imageberak ( 2015-03-05 08:56:18 -0600 )edit

I've tried FAST, but it seems that it is the same... empty Mat. I use OpenCV 2.4.10 under Linux

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-05 09:02:09 -0600 )edit

BRIEF is also crashing with Dense and it seems that BRISK is working... Is there a bug? Shall I init something like initModule_nonfree for SIFT and SURF?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-05 09:03:28 -0600 )edit

It seems that it is the size: I have resized the image and there have appeared descriptors (using Dense and FREAK) (double size -> 164 descriptors from 528 keypoints)

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-05 09:32:24 -0600 )edit

@berak Do you know something about the minimum size an image should be for having FREAK descriptors?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-05 10:05:41 -0600 )edit

no, but that might be a reason. how small was it ?

berak gravatar imageberak ( 2015-03-05 10:07:36 -0600 )edit

I have edited the question 144x33

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-05 10:37:49 -0600 )edit