Index: ViSP-2.10.0/src/key-point/vpKeyPoint.h =================================================================== --- ViSP-2.10.0.orig/src/key-point/vpKeyPoint.h +++ ViSP-2.10.0/src/key-point/vpKeyPoint.h @@ -494,6 +494,7 @@ public: initDetector(detectorName); } +#if (VISP_HAVE_OPENCV_VERSION >= 0x020400 && VISP_HAVE_OPENCV_VERSION < 0x030000) /*! Template function to set to a \p parameterName a value for a specific detector named by his \p detectorName. @@ -507,6 +508,7 @@ public: m_detectors[detectorName]->set(parameterName, value); } } +#endif /*! Set and initialize a list of detectors denominated by their names \p detectorNames. @@ -532,6 +534,7 @@ public: initExtractor(extractorName); } +#if (VISP_HAVE_OPENCV_VERSION >= 0x020400 && VISP_HAVE_OPENCV_VERSION < 0x030000) /*! Template function to set to a \p parameterName a value for a specific extractor named by his \p extractorName. @@ -545,6 +548,7 @@ public: m_extractors[extractorName]->set(parameterName, value); } } +#endif /*! Set and initialize a list of extractors denominated by their names \p extractorNames. @@ -700,7 +704,7 @@ public: m_useAffineDetection = useAffine; } -#if (VISP_HAVE_OPENCV_VERSION >= 0x020400) +#if (VISP_HAVE_OPENCV_VERSION >= 0x020400 && VISP_HAVE_OPENCV_VERSION < 0x030000) /*! Set if cross check method must be used to eliminate some false matches with a brute-force matching method. Index: ViSP-2.10.0/src/key-point/vpKeyPoint.cpp =================================================================== --- ViSP-2.10.0.orig/src/key-point/vpKeyPoint.cpp +++ ViSP-2.10.0/src/key-point/vpKeyPoint.cpp @@ -868,7 +868,7 @@ void vpKeyPoint::detect(const vpImage= 0x020400) +#if (VISP_HAVE_OPENCV_VERSION >= 0x020400 && VISP_HAVE_OPENCV_VERSION < 0x030000) if(m_matcher != NULL && !m_useKnn && matcherName == "BruteForce") { m_matcher->set("crossCheck", m_useBruteForceCrossCheck); }