I am currently trying to debug a chessboard corner detection algorithm in OpenCV. To do so, I have uncommented the
#define DEBUG_CHESSBOARD
line in the source code below.
https://github.com/opencv/opencv/blob/master/modules/calib3d/src/calibinit.cpp
I am then trying to build using the CMake GUI on Windows. When I do this, I keep running into the error "Cannot open include file: 'opencv2/highgui.hpp", evidently due to line 89 in the source code linked above (also shown below).
#ifdef DEBUG_CHESSBOARD
#include "opencv2/highgui.hpp"
I have looked everywhere and not sure how to resolve the issue. There is a related comment in the file that says that says
// Requires CMake flag: DEBUG_opencv_calib3d=ON
#define DEBUG_CHESSBOARD
but I cannot figure out how to turn this flag on.
If anyone has any thoughts on this, I would really appreciate it! Thank you so much!