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

prevent conversion of single channel 16bit integer images to/from colour #412

Merged

Conversation

christian-rauch
Copy link
Contributor

@christian-rauch christian-rauch commented Oct 12, 2021

The cv_bridge ignores 16 bit integer (a.k.a. MONO16) images and convert those to/from colour, thereby losing precision when converting back to MONO16 eventually.

This PR lets the bridge handle MONO16 images by basically preventing conversions to colour.

Fixes #411.

@mjcarroll mjcarroll merged commit f1dc651 into ros-perception:noetic Nov 23, 2021
@christian-rauch christian-rauch deleted the fix_16bit_conversion branch November 23, 2021 17:53
mintar pushed a commit to mintar/vision_opencv that referenced this pull request Jan 13, 2022
mintar pushed a commit to mintar/vision_opencv that referenced this pull request Jan 26, 2022
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

Successfully merging this pull request may close these issues.

loss of precision when converting to/from 16bit integer compressed image
2 participants