Robotics StackExchange | Archived questions

Can ros/rviz/opencv handle 12Bit JPEG?

Is it possible to visualize 12bit jpegs with ros/rviz?

When i look at this list i can't find any types related to 12bit. http://docs.ros.org/indigo/api/sensor_msgs/html/image__encodings_8h_source.html

I think the answer is based on the underlying jpeg implementation (libjpeg?,jpeg-turbo?). Are they compiled with 12-bit support?

Thx,

Asked by Equanox on 2017-04-27 05:17:14 UTC

Comments

This would part of sensor_msgs/CompressedImage not Image: https://github.com/ros/common_msgs/blob/jade-devel/sensor_msgs/msg/CompressedImage.msg But that appears to just say png and jpeg are acceptable options, don't know how 12-bit comes into it

Asked by William on 2017-04-27 15:44:40 UTC

Answers