Example for SIFT/SURF does not compile (refman.pdf) (Bug #1904)


Added by Manel Verdu almost 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-05-08
Priority:Normal Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:documentation
Target version:2.4.1 Estimated time:0.10 hour
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision 0ba3236c
Added by Andrey Kamaev almost 13 years ago

Fixed Algorithm usage example #1904

Revision 17f53bc3
Added by Roman Donchenko over 11 years ago

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

Also available in: Atom PDF