1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

changed detector type, descriptor type and matcher type for matching descriptors to be optional arguments; and updated document for CvMat#match_descriptors

This commit is contained in:
Xiao Li 2012-08-14 14:45:34 -07:00
parent 4db0c33191
commit bf63bbfb86
2 changed files with 24 additions and 11 deletions

View file

@ -9,7 +9,7 @@ image_files = ['1.png', '2.png', '3.png'].map{|f| File.join(data, 'train', f)}
images = image_files.map{|f| IplImage.load f, CV_LOAD_IMAGE_GRAYSCALE}
matchs = query.match_descriptors("SURF", "SURF", "FlannBased", images)
matchs = query.match_descriptors(images)
match_index, count = matchs.max_by {|image_index, count| count}