Bug #502

OpenCV ORB features are pure virtual

Added by Timo Korthals almost 8 years ago. Updated about 7 years ago.

Status:ClosedStart date:2017-02-22
Priority:NormalDue date:
Assignee:Christof Elbrechter% Done:

100%

Category:-
Target version:-

Description

So maybe it's just my fault, that I am unable to build with ORB feature in OpenCV 3.2.
But it might be a good idea to disable the ORB features by command anyway:

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt      (revision 4625)
+++ CMakeLists.txt      (working copy)
@@ -175,6 +175,7 @@

 # ---- User options ----
 OPTION(BUILD_WITH_OPENCV "Link against OpenCV and provide OpenCV image convertion functions" OFF)
+OPTION(BUILD_WITH_ORB "Build the ORB features from OpenCV" OFF)
 OPTION(BUILD_WITH_QT "Provides GUI and image visualization framework (needs OPENGL)" OFF)
 OPTION(BUILD_WITH_OPENGL "Linked to BUILD_WITH_QT" OFF)
 OPTION(BUILD_WITH_RSB "Link against the RSB framework for network-based image transfer (needs PROTOBUF)" OFF)
@@ -381,7 +382,7 @@
 ENDIF()

 IF(BUILD_WITH_OPENCV)
-  IF(${OPENCV_ROOT})
+  IF(EXISTS ${OPENCV_ROOT})
     SET(OpenCV_DIR ${OPENCV_ROOT})
   ENDIF()
   SET(OpenCV_OLD_LIBS_NOT_FOUND "TRUE")
@@ -408,7 +409,7 @@
     ELSE()
       ADD_ICL_DEFINITIONS(-DICL_HAVE_OPENCV_NEW_STYLE)
       # we need at least opencv 2.4 for the ORB-feature interface we want to use
-      IF(((NOT OPENCV_VERSION_MAJOR LESS 2) AND (NOT OPENCV_VERSION_MINOR LESS 4))
+      IF(((NOT OPENCV_VERSION_MAJOR LESS 2) AND (NOT OPENCV_VERSION_MINOR LESS 4) AND (BUILD_WITH_ORB))
           OR (OPENCV_VERSION_MAJOR GREATER 2))
         MESSAGE(STATUS "OpenCV >= 2.4.x detected, adding ORB feature detector")
         ADD_ICL_DEFINITIONS(-DICL_HAVE_OPENCV_FEATURES_2D)

History

#1 Updated by Christof Elbrechter over 7 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

solved together with #501

#2 Updated by Alexander Neumann about 7 years ago

  • Status changed from Feedback to Closed

As mentioned in #501, ICL builds with OpenCV 3.1 (Artful Ubuntu), OpenCV 3.2 (Windows) and OpenCV 3.3 (High Sierra).

Also available in: Atom PDF