I want to read a depth image from ros. I subscribe to the /camera/aligned_depth_to_color/image_raw/compressed topic published by a intel realsense D435i camera. I get a sensor_msgs CompressedImage ros msg, the image has a 16UC1; jpeg compressed format. I use opencv to read the image: depth_image = bridge.compressed_imgmsg_to_cv2(image_depth,desired_encoding=‘passthrough’) but it returns an image with values between 0-255. How can I get the depth value in mm for each pixel?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Depth Images and encoding 32FC1 | 6 | 5075 | December 12, 2020 | |
| Depth image/disparity | 5 | 1262 | November 18, 2022 | |
| Stream depth camera (Intel D455) with OpenCV | 5 | 3100 | August 19, 2022 | |
| Read Access Violation from opencv_cored.dll when using .converTo() | 2 | 550 | June 29, 2021 | |
| Remove 6 bit from 16 bit depth pixels | 11 | 2076 | April 4, 2022 |