Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv::Algorithm Errors

Hi,

I have this errors on cv::Algorithm - Expected '(' for function-style cast or type construction - No member named 'create' in 'cv::Algorithm')

Here is the code:

//Initialise detector, descriptor, matcher
detector = cv::Algorithm::create<cv::FeatureDetector>(detectorType.c_str());
descriptorExtractor = cv::Algorithm::create<cv::DescriptorExtractor>(descriptorType.c_str());
descriptorMatcher = cv::DescriptorMatcher::create(matcherType.c_str());
std::vector<cv::String> list;
cv::Algorithm::getList(list);

Showing All Errors:

detector = cv::Algorithm::create<cv::FeatureDetector>(detectorType.c_str());

Expected '(' for function-style cast or type construction No member named 'create' in 'cv::Algorithm'

descriptorExtractor = cv::Algorithm::create<cv::DescriptorExtractor>(descriptorType.c_str());

Expected '(' for function-style cast or type construction No member named 'create' in 'cv::Algorithm'

cv::Algorithm::getList(list);

No type named 'getList' in 'cv::Algorithm'

What I have to do ? Many Thanks