missing header file in some tutorial code (Bug #2805)


Added by xuecong zang about 12 years ago. Updated almost 12 years ago.


Status:Cancelled Start date:2013-02-15
Priority:Normal Due date:
Assignee:xuecong zang % Done:

100%

Category:documentation
Target version:-
Affected version:2.4.3 Operating System:
Difficulty: HW Platform:
Pull request:

Description

The tutorial code about features2d in recent opencv release won't work as expected, because they all used classes about surf and sift, which are no longer declared in the "opencv2/features2d/features2d.hpp" file. Instead, they are declared in "opencv2/nonfree/nonfree.hpp". Therefore, each of them should contain a #include line of this file to work properly.
Further more, the "opencv_nonfree242.lib" shoud be added in the linker input.

In tutorial 6.1 "Feature Description", line 51:
BruteForceMatcher< L2<float> > matcher;
BruteForceMatcher class has been renamed as BFMatcher, and should be constructed like:
BFMatcher matcher(NORM_L2);


Related issues

duplicates Bug #2800: missing header file in some tutorial code Done 2013-02-15

History

Updated by Andrey Kamaev almost 12 years ago

  • Status changed from Open to Cancelled

Also available in: Atom PDF