Ask Your Question
0

what does the dimensions of the desriptors and MatOfDMatch indicate?

asked 2015-04-10 03:31:35 -0600

RB gravatar image

I just want to understand why the .match(descrip_1, descrip_2, matches) produces MatOfDMatch object whose width == 1 and its height == height of descrip_1? I created an example and as you see below in the result, both descrip_1 and descrip_2 has width of 64 columns?! and the matches has i columns as width and 354 rows as height?!

can you please explain why always the matches object has one columns and number of rows == descript_1's number of rows?

and as descript_1 and descript_2 has width of 64 column, what the width of descrip_1 or descript_2 contains?

Debug: MainClass -> descriptorMatcher: descrip_1.size: 64x354
Debug: MainClass -> descriptorMatcher: descrip_1.height().height: 354.0
Debug: MainClass -> descriptorMatcher: descrip_1.rows: 354
Debug: MainClass -> descriptorMatcher: descrip_2.size: 64x554
Debug: MainClass -> descriptorMatcher: descrip_2.height().height: 554.0
Debug: MainClass -> descriptorMatcher: descrip_2.rows: 554
Debug: MainClass -> descriptorMatcher: matches.size: 1x354
Debug: MainClass -> descriptorMatcher: matches.size().height: 354.0
Debug: MainClass -> descriptorMatcher: matches.rows: 354
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-04-10 05:09:37 -0600

Eduardo gravatar image

If you look at the documentation of match:

Finds the best match for each descriptor from a query set.

To recall the meaning of the descriptors dimension:

  • each row contains the values of the descriptor for one keypoint
  • the number of columns depends on the descriptor size which depends on the method used

So, for

descrip_1.size: 64x354

it means that you have 354 keypoints and the type of the descriptor used contains 64 values.

As you

Finds the best match for each descriptor from a query set.

you will have a list of matches with a size corresponding to the number of query keypoints.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-04-10 03:31:35 -0600

Seen: 345 times

Last updated: Apr 10 '15