"sensor_msgs::ImageConstPtr" encoding and type casting
Hi all in my program I subscribe this topic "/camera/depth/image" and I want to use this image for visual optometry in Fovis.
I use this function parameter "sensor_msgs::ImageConstPtr depth_image" and the encoding of this topic "depth_image->encoding.c_str()" is "32FC1" .
how cant I cast this type to "const uint16_t" ? and also for similar types like " 8UC[1-4],8SC[1-4],16UC[1-4],16SC[1-4],32SC[1-4],32FC[1-4],64FC[1-4]" ?
thank you in advance Ramin