missing header file in some tutorial code (Bug #2800)
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
duplicated by Bug #2805: missing header file in some tutorial code | Cancelled | 2013-02-15 |
Associated revisions
Merge pull request #2800 from krodyush:pullreq/140516-opticalflow-imgext-fix
History
Updated by Kirill Kornyakov about 12 years ago
That is correct, tutorials should be updated. But OpenCV team doesn't have a technical writer at the moment, so if you could work on a GitHub pull request for '2.4' branch, that would help a lot!
- Assignee changed from Vadim Pisarevsky to xuecong zang
Updated by yogesh yogesh about 12 years ago
+1
Updated by xuecong zang about 12 years ago
Although I was assigned this bug,I didn't do anything, bugs seems to be fixed by someone elseā¦
Updated by Kirill Kornyakov over 11 years ago
- Status changed from Open to Done
- Affected version changed from 2.4.3 to 2.4.0 - 2.4.4