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

OpenCV 4 build issue #54

Open
tkircher opened this issue Mar 30, 2020 · 0 comments
Open

OpenCV 4 build issue #54

tkircher opened this issue Mar 30, 2020 · 0 comments

Comments

@tkircher
Copy link

Between OpenCV 3 and 4, CV_LOAD_IMAGE_UNCHANGED changed to IMREAD_UNCHANGED. So to get this module to build with OpenCV 4, make this change in image_transport_plugins/compressed_depth_image_transport/src/codec.cpp, line 134:

cv_ptr->image = cv::imdecode(imageData, IMREAD_UNCHANGED);

Noetic is supposed to support OpenCV 4, but there are very few changes that need to be made for Melodic to support it. Few people use OpenCV 3 anymore.

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