ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Compressed image transport only supports 8 bit image formats, so the 16 bit image you're using cannot be compressed by it. Is the image you're trying to compress a depth image? The compressed depth image transport package is designed specifically for this.

Hopefully this package will get this working for you.

Compressed image transport only supports 8 bit image formats, so the 16 bit image you're using cannot be compressed by it. Is the image you're trying to compress a depth image? The compressed depth image transport package is designed specifically for this.

Hopefully this package will get this working for you.

EDIT : This may be OpenCV doing something a bit strange. It uses the OS codecs for image encoding/decoding so it's possible it behaves differently on different systems. You could make a simple node to receive the compressed image and debug the formatting and memory layout of the resulting cv::Mat object.