Errors when using FlannBasedMatcher
dapicester opened this issue · comments
Paolo D'Apice commented
Instantiating a new FlannBasedMatcher
:
require 'ropencv'
include OpenCV
matcher = cv::FlannBasedMatcher.new
the following error occurs:
NameError: undefined local variable or method `flann' for OpenCV::Cv::FlannBasedMatcher:Class
from /home/paolo/.rvm/gems/ruby-2.0.0-p598/gems/ropencv-0.0.21/lib/ropencv/ropencv_types.rb:32672:in `new'
So the error is on the following line:
# overloaded method wrapper for cv::FlannBasedMatcher::FlannBasedMatcher(const cv::Ptr<cv::flann::IndexParams> indexParams = makePtr<flann::KDTreeIndexParams>(), const cv::Ptr<cv::flann::SearchParams> searchParams = makePtr<flann::SearchParams>())
@@cv_flann_based_matcher_flann_based_matcher_defaults0 ||= [cv::Ptr<flann::KDTreeIndexParams>(new flann::KDTreeIndexParams), cv::Ptr<flann::SearchParams>(new flann::SearchParams)]
It seems to me that the flann
namespace does not exists or it is not correctly wrapped/exported. In fact I cannot find other references neither to flann
nor to KDTreeIndexParams
in the file.
Can you please check and tell me if I am missing anything?