How to interpret data matrix in sensor_msgs/Image?
I am subscribing to the topic /camera/depth/image_rect_color
in the package zed-ros-wrapper to obtain depth information using a zed camera. Right now, my subscriber looks at a random pixel and reads the depth information. Is there any way to find out which pixel corresponds to what element(index) in the matrix?
Also if I run rostopic echo /camera/depth/image_rect_color
, I find that the encoding is 32FC1
. But the data matrix is int
(I believe unit8
denotes int
). Also, I haven't seen any value above 255. So, the matrix looks like 8UC1
. What am I missing here or how does a 32FC1 matrix looks like?
Edit: I meant uint8
, not unit8
. Sorry about that (Thanks to NEngelhard).