mono16 image is wrongly formed when using compressed image_transport
I am dealing with a 16-bit mono image, publishing it using image_transport. I have no issues with the raw data topic, I can view it directly, bag it, replay it, and view again. If I run rostopic echo /cam/image | grep step
I get 1280 as the result.
When I'm using image_view _image_transport:=compressed
, I get an error message saying this:
Unable to convert 'mono16' image for display: : 'Image is wrongly formed: step < width * byte_depth * num_channels or 640 != 640 * 2 * 1
I'm using a vanilla image_transport
publisher without changing any parameters. Am I missing something or is this a bug in the image_transport plugins?