Ask Your Question
2

openvc/cv_bridge encoding

asked 2011-09-21 09:56:20 -0500

Aditya gravatar image

updated 2011-09-22 08:21:10 -0500

Which encoding is most appropriate for using cv_bridge to convert cv::Mat_<cv::vec3d> matrices into ros images?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
7

answered 2011-09-21 10:13:20 -0500

Patrick Mihelich gravatar image

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.

edit flag offensive delete link more

Comments

No matter what enconding type I use, I always get the same message: [ERROR] [1363015855.837613897]: cv_bridge exception: Unrecognized image encoding []. Can you please help me?

Median gravatar imageMedian ( 2013-03-11 05:33:21 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2011-09-21 09:56:20 -0500

Seen: 1,222 times

Last updated: Sep 22 '11