cv_bridge::CvImage Class Reference

Image message class that is interoperable with sensor_msgs/Image but uses a more convenient cv::Mat representation for the image data. More...

#include <cv_bridge.h>

List of all members.

Public Types

typedef boost::shared_ptr
< CvImage const > 
ConstPtr
typedef boost::shared_ptr
< CvImage
Ptr

Public Member Functions

void toImageMsg (sensor_msgs::Image &ros_image) const
 Copy the message data to a ROS sensor_msgs::Image message.
sensor_msgs::ImagePtr toImageMsg () const
 Convert this message to a ROS sensor_msgs::Image message.

Public Attributes

std::string encoding
 Image encoding ("mono8", "bgr8", etc.).
std_msgs::Header header
 ROS header.
cv::Mat image
 Image data for use with OpenCV.

Protected Attributes

boost::shared_ptr< void const > tracked_object_

Detailed Description

Image message class that is interoperable with sensor_msgs/Image but uses a more convenient cv::Mat representation for the image data.

Definition at line 57 of file cv_bridge.h.


Member Typedef Documentation

typedef boost::shared_ptr<CvImage const> cv_bridge::CvImage::ConstPtr

Definition at line 80 of file cv_bridge.h.

typedef boost::shared_ptr<CvImage> cv_bridge::CvImage::Ptr

Definition at line 79 of file cv_bridge.h.


Member Function Documentation

void cv_bridge::CvImage::toImageMsg ( sensor_msgs::Image &  ros_image  )  const

Copy the message data to a ROS sensor_msgs::Image message.

This overload is intended mainly for aggregate messages such as stereo_msgs::DisparityImage, which contains a sensor_msgs::Image as a data member.

Definition at line 192 of file cv_bridge.cpp.

sensor_msgs::ImagePtr cv_bridge::CvImage::toImageMsg (  )  const

Convert this message to a ROS sensor_msgs::Image message.

The returned sensor_msgs::Image message contains a copy of the image data.

Definition at line 185 of file cv_bridge.cpp.


Member Data Documentation

Image encoding ("mono8", "bgr8", etc.).

Definition at line 61 of file cv_bridge.h.

std_msgs::Header cv_bridge::CvImage::header

ROS header.

Definition at line 60 of file cv_bridge.h.

Image data for use with OpenCV.

Definition at line 62 of file cv_bridge.h.

boost::shared_ptr<void const> cv_bridge::CvImage::tracked_object_ [protected]

Definition at line 83 of file cv_bridge.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Defines


cv_bridge
Author(s): James Bowman, Patrick Mihelich
autogenerated on Fri Jan 11 10:06:56 2013