{"id":364,"date":"2022-08-30T15:00:07","date_gmt":"2022-08-30T15:00:07","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/06\/how-to-use-featuredetector-in-opencv-c-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:00:07","modified_gmt":"2022-08-30T15:00:07","slug":"how-to-use-featuredetector-in-opencv-c-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-use-featuredetector-in-opencv-c-collection-of-common-programming-errors\/","title":{"rendered":"How to use FeatureDetector in OpenCV C++?-Collection of common programming errors"},"content":{"rendered":"<p>I think you have installation problem, try resinstalling from here: sourceforge.net\/projects\/opencvlibrary\/files\/opencv-win\/2.2<\/p>\n<p>anther other option is that your precompiler already has <code>__OPENCV_OLD_CV_H__<\/code> defined. Try undefining it before <code>#include \"cv.h\"<\/code><\/p>\n<p>When you type <code>#include \"cv.h\"<\/code> It automatically should include featurs2d. in fact cv.h includes the following:<\/p>\n<pre><code>#include \"opencv2\/core\/core_c.h\"\n#include \"opencv2\/core\/core.hpp\"\n#include \"opencv2\/imgproc\/imgproc_c.h\"\n#include \"opencv2\/imgproc\/imgproc.hpp\"\n#include \"opencv2\/video\/tracking.hpp\"\n#include \"opencv2\/features2d\/features2d.hpp\"\n#include \"opencv2\/flann\/flann.hpp\"\n#include \"opencv2\/calib3d\/calib3d.hpp\"\n#include \"opencv2\/objdetect\/objdetect.hpp\"\n#include \"opencv2\/legacy\/compat.hpp\"\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-06 03:16:53. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I think you have installation problem, try resinstalling from here: sourceforge.net\/projects\/opencvlibrary\/files\/opencv-win\/2.2 anther other option is that your precompiler already has __OPENCV_OLD_CV_H__ defined. Try undefining it before #include &#8220;cv.h&#8221; When you type #include &#8220;cv.h&#8221; It automatically should include featurs2d. in fact cv.h includes the following: #include &#8220;opencv2\/core\/core_c.h&#8221; #include &#8220;opencv2\/core\/core.hpp&#8221; #include &#8220;opencv2\/imgproc\/imgproc_c.h&#8221; #include &#8220;opencv2\/imgproc\/imgproc.hpp&#8221; #include &#8220;opencv2\/video\/tracking.hpp&#8221; #include [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-364","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/364\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}