flann surf matching error

asked 2015-08-31 05:04:08 -0600

dmngu9 gravatar image

updated 2015-08-31 05:24:09 -0600

Hi i tried the tutorial opencv surf but i get error descriptor empty. I want to skip the frame which gives empty descriptor. after trying a few approaches, it still keep terminating the process without jump to next frame when that error occur. any suggestions

also, i have this error as well OpenCV Error: Assertion failed (count >= 4) in cvFindHomography . I havent found the reason for this error

edit retag flag offensive close merge delete

Comments

can you give a link and opencv version?

LBerger gravatar imageLBerger ( 2015-08-31 06:21:20 -0600 )edit

I don't know your code, but you should do an if (surfKeypoints.empty()) go to the next frame and do nothing else. If you have a loop, do a continue, or create functions that do the following steps after the detections of keypoints (like descriptors extraction, matching, interpretation, homography etc) and put them in the if (!keypoints.empty()) block. You cannot do the homography if there are no keypoints. Be careful, maybe you have 2 frames with no kp and now you are in the case of dstPoints.empty()...

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-08-31 06:26:05 -0600 )edit