openvc/cv_bridge encoding
Which encoding is most appropriate for using cv_bridge to convert cv::Mat_<cv::vec3d> matrices into ros images?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Which encoding is most appropriate for using cv_bridge to convert cv::Mat_<cv::vec3d> matrices into ros images?
Use sensor_msgs::image_encodings::TYPE_64FC3
. In the OpenCV naming scheme, this is 64-bit floating point (64F, aka double) with 3 channels (C3).
The full list of encodings is defined in sensor_msgs/image_encodings.h
and viewable here. We define some named encodings (like RGB8
) that specify the color semantics as well as data type and number of channels. The TYPE_*
encodings support arbitrary data.
Asked: 2011-09-21 09:56:20 -0600
Seen: 1,822 times
Last updated: Sep 22 '11
Convert from a sensor_msgs::CompressedImage message to IplImage
How to synchronize image and marker display between two ROS nodes
OpenCV Error: Image step is wrong () in cvInitMatHeader
cv_bridge and IplImage -> Mat when going from OpenCV 2.1 to OpenCV 2.3?
cv::bilateralFilter segfaults on image from cv_bridge
Are there somebodies use OpenCV2.2 with ROS ?
services with sensor_msgs::Image response in diamondback ubuntu10.10