D-Alex / ropencv

ffi ruby wrapper for opencv
Other
67 stars 14 forks source link

BFMatcher won't accept type #2

Closed bobbdelsol closed 10 years ago

bobbdelsol commented 10 years ago

When i try and use matcher= cv::BFMatcher::create('NORM_L1') i get an error, that NORM_L1 is unknown matcher type. Matches the CV documentation http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_descriptor_matchers.html#BFMatcher : public DescriptorMatcher

if I use cv::NORM_L1, it complains that it's an integer instead of a string, i'm lost, any help?

bobbdelsol commented 10 years ago

found the correct strings

"BruteForce-SL2" "BruteForce-L1")) "BruteForce-Hamming" "BruteForce-HammingLUT" "BruteForce-Hamming(2)"

When i get this working i'll drop the example in your example folder