Ask Your Question

matga's profile - activity

2018-06-07 02:06:27 -0600 received badge  Popular Question (source)
2015-05-23 11:46:05 -0600 received badge  Student (source)
2015-03-23 13:37:02 -0600 asked a question How can i match KAZE descriptors?

I tried the demo codes with the AKAZE, and it worked well. But when i want to use KAZE, it gives back this error:

Assertion failed ((type == CV_8U && dtype == CV_32S) || dtype == CV_32F) in cv::batchDistance

I used this:

Ptr<KAZE> kaze = KAZE::create();
kaze->detectAndCompute(img1, noArray(), kpts1, desc1);
kaze->detectAndCompute(img2, noArray(), kpts2, desc2);

BFMatcher matcher(NORM_HAMMING);

And the code gives back error, if i use

matcher.match(desc1, desc2, matches);

or

matcher.knnMatch(desc1, desc2, nn_matches, 2);

Where matches is vector<dmatch> and nn_matches is vector< vector<DMatch> >

Can u tell me, how can i match KAZE descriptors?

2015-03-01 06:11:49 -0600 received badge  Editor (source)
2015-02-28 11:38:47 -0600 asked a question OpenCV 3.0 BETA - can't open video files

When i want to open video file with VideoCapture, the isOpened() returns everytime false. But VideoCapture works with the camera. I use build from the opencv.org. It worked few days ago, but i forgot what i did to work. :P

So my question is, what should i do, if after VideoCapture video_in("video.mp4"); video_in.isOpened() returns false? Is it wrong settings, or did i forget add some libs?

Thank you.

[EDIT] Problem solved, i coied opencv_ffmpeg300.dll to debug folder, and it works now.