We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Creating a CompressedImage in Python via:
CompressedImage
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:
img
np.uint16
img_msg.format = "png"
format
dst_format
vision_opencv/cv_bridge/python/cv_bridge/core.py
Line 216 in a3736d2
rqt_image_view
img_msg.format = "16UC1; png compressed"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Creating a
CompressedImage
in Python via:where
img
is isnp.uint16
, creates a compressed image message withimg_msg.format = "png"
, i.e. it setsformat
directly todst_format
:vision_opencv/cv_bridge/python/cv_bridge/core.py
Line 216 in a3736d2
However,
rqt_image_view
only displays the compressed 16bit png image properly when the format is set to:The text was updated successfully, but these errors were encountered: