Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #4

Open
swvanderlaan opened this issue Sep 13, 2024 · 0 comments
Open

Compilation error #4

swvanderlaan opened this issue Sep 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@swvanderlaan
Copy link
Owner

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.

@swvanderlaan swvanderlaan added the bug Something isn't working label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants