Skip to content

Commit

Permalink
HISTCMP_CORREL only available since OpenCV 3.0 (opencv/opencv#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Feb 16, 2022
1 parent 44d3994 commit adb38a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ opencv_apps_add_nodelet(discrete_fourier_transform src/nodelet/discrete_fourier_
# ./tutorial_code/Histograms_Matching/calcBackProject_Demo1.cpp
# ./tutorial_code/Histograms_Matching/calcBackProject_Demo2.cpp
# ./tutorial_code/Histograms_Matching/calcHist_Demo.cpp
if(OpenCV_VERSION GREATER_LESS "3.0")
opencv_apps_add_nodelet(compare_histogram src/nodelet/compare_histogram_nodelet.cpp) # ./tutorial_code/Histograms_Matching/compareHist_Demo.cpp
opencv_apps_add_nodelet(equalize_histogram src/nodelet/equalize_histogram_nodelet.cpp) # ./tutorial_code/Histograms_Matching/EqualizeHist_Demo.cpp
endif()
opencv_apps_add_nodelet(equalize_histogram src/nodelet/equalize_histogram_nodelet.cpp) # ./tutorial_code/Histograms_Matching/EqualizeHist_Demo.cpp
# ./tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp

# imagecodecs
Expand Down
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ add_rostest(test-hls_color_filter.test ARGS gui:=false)
add_rostest(test-hsv_color_filter.test ARGS gui:=false)
add_rostest(test-lab_color_filter.test ARGS gui:=false)
add_rostest(test-edge_detection.test ARGS gui:=false)
add_rostest(test-compare_histogram.test ARGS gui:=false)
if(OpenCV_VERSION GREATER_LESS "3.0")
add_rostest(test-compare_histogram.test ARGS gui:=false)
endif()
add_rostest(test-equalize_histogram.test ARGS gui:=false)

add_rostest(test-hough_lines.test ARGS gui:=false)
Expand Down

0 comments on commit adb38a2

Please sign in to comment.