individual elements of stereo_msgs DisparityImage
Hi,
I am trying to print out the individual elements of a stereo_msgs DisparityImage
message for some debugging. I am not sure how the data is stored in the main array? And regardless of how they are stored, is the data the disparity value for each pixel (in pixel coordinates)?
I don't want to have to convert to cv Mat
to do simple debugging tasks. But when I did in any case by using cv_bridge
, the elements show some values up to the power of 12 which is not reasonable. My focal length is in the order of 100s of pixels (again I am not sure what focal length in pixels is). The baseline in the same message seem to be correct. Moreover, the data is visualized reasonably, if I divide each value by the max. disparity and then scale it to 0-255. So what are the values of the individual elements?
Thank you.