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

wrong "format" for compressed 16bit png images #250

Open
christian-rauch opened this issue Oct 25, 2018 · 0 comments
Open

wrong "format" for compressed 16bit png images #250

christian-rauch opened this issue Oct 25, 2018 · 0 comments

Comments

@christian-rauch
Copy link
Contributor

Creating a CompressedImage in Python via:

img_msg = self.cvbridge.cv2_to_compressed_imgmsg(img, dst_format="png")

where img is is np.uint16, creates a compressed image message with img_msg.format = "png", i.e. it sets format directly to dst_format:

cmprs_img_msg.format = dst_format

However, rqt_image_view only displays the compressed 16bit png image properly when the format is set to:

img_msg.format = "16UC1; png compressed"
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