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 | 3703 | December 12, 2020 | |
Open 16 and 24 bit image in Python | 1 | 2079 | February 14, 2021 | |
Saving Image format problem | 7 | 3853 | June 23, 2021 | |
Using `imread` to read a image then multiply a number in one line, the value is wrong! BUG? | 4 | 134 | January 8, 2024 | |
Imdecode crashing | 4 | 603 | February 27, 2023 |