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

Image Transport Compressed issue for Depth Image - ROS Fuerte

asked 2013-05-22 22:43:36 -0500

Sourav gravatar image

updated 2013-05-23 00:54:26 -0500

Hi, I am using Depth Image for one of my applications, where I need to use compressed image transport for some server/client app. If I use param -> "_image_transport:=raw", everything works fine, but if I use "compressed" instead of "raw", then the depth values that I get are not similar.

I am using "/camera/depth/image_raw" topic and converting the image into "16UC1" format using cv_bridge. Then I access the depth values using a Mat and type "ushort".

Is there some issue with the format of image that I need to change for accessing the depth values for compressed image transport?

Thanks in advance! Sourav

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-05-27 08:26:58 -0500

Sourav gravatar image

Solution: The default compression algorithm is "jpeg" which should be changed to "png" in case of depth image. This can be done by changing the "format" parameter for that topic(/image_transport_type).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-05-22 22:43:36 -0500

Seen: 1,899 times

Last updated: May 23 '13