-
Notifications
You must be signed in to change notification settings - Fork 606
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
CompressedImageMsg and alpha channels #169
Comments
what are you referring to here ? ImageTransport ? JPEG does not support alpha, PNG does. |
I have this code snippet as example: // Converting input image "pImg" to ros msg My pImg is the input 4 channel cv::Mat that is converted to a bgra8 image message. Afterwards it is getting reconverted into a cv::Mat. Value at point (0, 0) is then shown for both input and reconverted mat. Alpha channel is lost and set to 255. The same code works for "toImageMsg()". |
Thx for reporting, please confirm that master works for you |
Confirmed. And thanks! Edit: Ah, btw do you plan an update for ros indigo too? |
Cool ! Yes, it got cherry-picked in Indigo: 87b9bba |
Hey there,
after some tests I found out that the compressed image message does not support an alpha channel. At least it is cutting them off and sets everything to 255 when decoding. Is this on purpose?
Best regards,
Alex
The text was updated successfully, but these errors were encountered: