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

Error: CV_LOAD_IMAGE_GRAYSCALE not declared when compiling Aloam #1

Open
ruziniuuuuu opened this issue Mar 10, 2024 · 0 comments
Open

Comments

@ruziniuuuuu
Copy link

I encountered the following error when running the catkin_make command as described in Section 3.1 while trying to build the A-LOAM package in ROS Noetic with OpenCV (higher version):

3b0bd6950c63c7abcaa36049c2c82fc

The key issue seems to be that CV_LOAD_IMAGE_GRAYSCALE is not declared when trying to read an image in kittiHelper.cpp.

I was able to resolve this by changing CV_LOAD_IMAGE_GRAYSCALE to cv::IMREAD_GRAYSCALE as shown here:

image

After making that change, I was able to successfully compile the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant