Skip to content

Commit

Permalink
Disable sift testing when opencv 4.9.0 is used. Breaks macos-13 ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Feb 2, 2024
1 parent fdcb114 commit 215499d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion modules/vision/test/keypoint-with-dataset/testKeyPoint-5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ void run_test(const std::string &env_ipath, bool opt_click_allowed, bool opt_dis
(VISP_HAVE_OPENCV_VERSION >= 0x030411 && CV_MAJOR_VERSION < 4) || (VISP_HAVE_OPENCV_VERSION >= 0x040400)
#if (VISP_HAVE_OPENCV_VERSION != 0x040504) && (VISP_HAVE_OPENCV_VERSION != 0x040505) && \
(VISP_HAVE_OPENCV_VERSION != 0x040600) && (VISP_HAVE_OPENCV_VERSION != 0x040700) && \
(VISP_HAVE_OPENCV_VERSION != 0x040900) && \
(defined(__APPLE__) && defined(__MACH__))
// SIFT is known to be unstable with OpenCV 4.5.4 and 4.5.5 on macOS (see #1048)
// Same for OpenCV 4.6.0 (see #1106) where it produces an Illegal Instruction error when OpenCV 4.6.0 is
Expand Down Expand Up @@ -262,7 +263,8 @@ void run_test(const std::string &env_ipath, bool opt_click_allowed, bool opt_dis
#if defined(VISP_HAVE_OPENCV_NONFREE) || defined(VISP_HAVE_OPENCV_XFEATURES2D) || \
(VISP_HAVE_OPENCV_VERSION >= 0x030411 && CV_MAJOR_VERSION < 4) || (VISP_HAVE_OPENCV_VERSION >= 0x040400)
#if ((VISP_HAVE_OPENCV_VERSION == 0x040504) || (VISP_HAVE_OPENCV_VERSION == 0x040505) || \
(VISP_HAVE_OPENCV_VERSION == 0x040600) || (VISP_HAVE_OPENCV_VERSION == 0x040700)) && \
(VISP_HAVE_OPENCV_VERSION == 0x040600) || (VISP_HAVE_OPENCV_VERSION == 0x040700) || \
(VISP_HAVE_OPENCV_VERSION == 0x040900)) && \
(defined(__APPLE__) && defined(__MACH__))
// SIFT is known to be unstable with OpenCV 4.5.4 and 4.5.5 on macOS (see #1048)
// Same for OpenCV 4.6.0 (see #1106) where it produces an Illegal Instruction error when OpenCV 4.6.0 is
Expand Down
9 changes: 5 additions & 4 deletions modules/vision/test/keypoint-with-dataset/testKeyPoint-7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,13 @@ template <typename Type> void run_test(const std::string &env_ipath, const std::
}

// Test with floating point descriptor
#if defined(VISP_HAVE_OPENCV_NONFREE) || \
((VISP_HAVE_OPENCV_VERSION >= 0x030000) && defined(VISP_HAVE_OPENCV_XFEATURES2D) || \
#if defined(VISP_HAVE_OPENCV_NONFREE) || \
((VISP_HAVE_OPENCV_VERSION >= 0x030000) && defined(VISP_HAVE_OPENCV_XFEATURES2D) || \
(VISP_HAVE_OPENCV_VERSION >= 0x030411 && CV_MAJOR_VERSION < 4) || (VISP_HAVE_OPENCV_VERSION >= 0x040400))
{
#if (VISP_HAVE_OPENCV_VERSION != 0x040504) && (VISP_HAVE_OPENCV_VERSION != 0x040505) && \
(VISP_HAVE_OPENCV_VERSION != 0x040600) && (VISP_HAVE_OPENCV_VERSION != 0x040700) && \
#if (VISP_HAVE_OPENCV_VERSION != 0x040504) && (VISP_HAVE_OPENCV_VERSION != 0x040505) && \
(VISP_HAVE_OPENCV_VERSION != 0x040600) && (VISP_HAVE_OPENCV_VERSION != 0x040700) && \
(VISP_HAVE_OPENCV_VERSION != 0x040900) && \
(defined(__APPLE__) && defined(__MACH__))
// SIFT is known to be unstable with OpenCV 4.5.4 and 4.5.5 on macOS (see #1048)
// Same for OpenCV 4.6.0 (see #1106) where it produces an Illegal Instruction error when OpenCV 4.6.0 is
Expand Down

0 comments on commit 215499d

Please sign in to comment.