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:
parent
4db0c33191
commit
bf63bbfb86
2 changed files with 24 additions and 11 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue