-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
A compilation error due to updated opencv4 compared to opencv2.
slideNormalize.cpp:40:40: error: use of undeclared identifier 'CV_BGR2Lab'
40 | cv::cvtColor(bgr_image, lab_image, CV_BGR2Lab);
| ^
slideNormalize.cpp:66:41: error: use of undeclared identifier 'CV_Lab2BGR'
66 | cv::cvtColor(lab_image, image_clahe, CV_Lab2BGR);
| ^
slideNormalize.cpp:73:42: error: use of undeclared identifier 'CV_WINDOW_NORMAL'; did you mean 'cv::WINDOW_NORMAL'?
73 | cv::namedWindow("Original image", CV_WINDOW_NORMAL);
| ^~~~~~~~~~~~~~~~
| cv::WINDOW_NORMAL
/usr/local/opt/opencv/include/opencv4/opencv2/highgui.hpp:143:8: note: 'cv::WINDOW_NORMAL' declared here
143 | WINDOW_NORMAL = 0x00000000, //!< the user can resize the window (no constraint) / also use to switch a fullscreen window to a normal size.
| ^
slideNormalize.cpp:77:52: error: use of undeclared identifier 'CV_WINDOW_NORMAL'; did you mean 'cv::WINDOW_NORMAL'?
77 | cv::namedWindow("Normalized (CLAHE) image", CV_WINDOW_NORMAL);
| ^~~~~~~~~~~~~~~~
| cv::WINDOW_NORMAL
/usr/local/opt/opencv/include/opencv4/opencv2/highgui.hpp:143:8: note: 'cv::WINDOW_NORMAL' declared here
143 | WINDOW_NORMAL = 0x00000000, //!< the user can resize the window (no constraint) / also use to switch a fullscreen window to a normal size.
| ^
4 errors generated.
slideNormalize.cpp:40:40: error: use of undeclared identifier 'CV_BGR2Lab'
40 | cv::cvtColor(bgr_image, lab_image, CV_BGR2Lab);
| ^
slideNormalize.cpp:66:41: error: use of undeclared identifier 'CV_Lab2BGR'
66 | cv::cvtColor(lab_image, image_clahe, CV_Lab2BGR);
| ^
slideNormalize.cpp:73:42: error: use of undeclared identifier 'CV_WINDOW_NORMAL'; did you mean 'cv::WINDOW_NORMAL'?
73 | cv::namedWindow("Original image", CV_WINDOW_NORMAL);
| ^~~~~~~~~~~~~~~~
| cv::WINDOW_NORMAL
/usr/local/opt/opencv/include/opencv4/opencv2/highgui.hpp:143:8: note: 'cv::WINDOW_NORMAL' declared here
143 | WINDOW_NORMAL = 0x00000000, //!< the user can resize the window (no constraint) / also use to switch a fullscreen window to a normal size.
| ^
slideNormalize.cpp:77:52: error: use of undeclared identifier 'CV_WINDOW_NORMAL'; did you mean 'cv::WINDOW_NORMAL'?
77 | cv::namedWindow("Normalized (CLAHE) image", CV_WINDOW_NORMAL);
| ^~~~~~~~~~~~~~~~
| cv::WINDOW_NORMAL
/usr/local/opt/opencv/include/opencv4/opencv2/highgui.hpp:143:8: note: 'cv::WINDOW_NORMAL' declared here
143 | WINDOW_NORMAL = 0x00000000, //!< the user can resize the window (no constraint) / also use to switch a fullscreen window to a normal size.
| ^
4 errors generated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working