ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

ROS Image messages are not necessarily 8-bit data; the Image message supports a variety of encodings.

Unless you specifically tell it not to, cv_bridge will respect the type of the Image message it's operating on, and the resulting cv::Mat will match.

ROS Image messages are not necessarily 8-bit data; the Image message supports a variety of encodings.

Unless you specifically tell it not to, cv_bridge will respect the type of the Image message it's operating on, and the resulting cv::Mat will match.

See the documentation on image_transport and cv_bridge for more.

ROS Image messages are not necessarily 8-bit data; the Image message supports a variety of encodings.encodings. (Note that the message uses an array of 8-bit values to store a binary blob; that doesn't mean it's 8-bit data.)

Unless you specifically tell it not to, cv_bridge will respect the type of the Image message it's operating on, and the resulting cv::Mat will match.

See the documentation on image_transport and cv_bridge for more.