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

question on conversion of depth image

asked 2017-08-11 15:46:57 -0500

rnunziata gravatar image

I have a depth image (128, 414, 3) type 64FC3. I could like to convert this to be acceptable to send to rtabmap_ros/point_cloud_xyzrgb . However I am not sure how to covert this image into an acceptable form. Has anyone encounted an issue like this and can suggest a solution other then manually doing the point cloud conversion.

new2 = self.bridge.cv2_to_imgmsg(depth_image,  "bgr8")  
encoding specified as bgr8, but image has incompatible type 64FC3
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-11 16:51:41 -0500

rnunziata gravatar image

I worked it out...all three channels where the I just grabbed one and was able to do a astype(np.float32) on it.

edit flag offensive delete link more

Question Tools



Asked: 2017-08-11 15:46:57 -0500

Seen: 472 times

Last updated: Aug 11 '17