count drawing lines [closed]

asked 2013-10-14 20:34:40 -0500

i wanna know if i can count the number of drawing lines in SURF (drawMatches) thank you

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-07 00:40:19.663469

Comments

1

Since draw matches needs a Vector of matches, you can basically just do vector.size(). If you used, knnMatch, you need to loop through your vector and check for every vector entry, since although you use knnMatches, its not always given that you have k matches per keypoint.

Moster gravatar imageMoster ( 2013-10-15 00:50:28 -0500 )edit

actually am using DescriptorMatcher::match thank you

geekette86 gravatar imagegeekette86 ( 2013-10-15 09:05:27 -0500 )edit