Example for SIFT/SURF does not compile (refman.pdf) (Bug #1904)
Description
In the include file "opencv2/opencv.hpp" the nonfree header "opencv2/nonfree.hpp" is not included. (Reviewed it in revision 8317). Therefore the example on page 48 of the refmanual for the sift features causes the error: "initModule_nonfree(); is not declared in this scope".
If it is not desired to include the nonfree header in the opencv.hpp (because 'stitching is not included either') then the example has to be fixed (#include "opencv2/nonfree/nonfree.hpp")
Associated revisions
Fixed Algorithm usage example #1904
Merge pull request #1904 from severin-lemaignan:emscripten
History
Updated by Manel Verdu almost 13 years ago
calls for methods on Feature2D Pointer "sift" are wrong:
- sift.read(...) should be sift->read(...)
- sift.set(...) should be sift->set(...)
- sift.write(...) should be sift->write(...)
- sift(image, noArray(), keypoints, descriptors); should be (*sift)(image, noArray(), keypoints, descriptors);
Updated by Andrey Kamaev almost 13 years ago
Thanks for the report.
Fix is committed to the OpenCV trunk.
- Status changed from Open to Done
- Assignee set to Andrey Kamaev