Public Member Functions | Public Attributes | List of all members
ImageTransportImage Class Reference

Public Member Functions

 ImageTransportImage ()
 Empty constructor. More...
 
 ImageTransportImage (const sensor_msgs::Image &image, const uint8_t *data)
 Constructor. More...
 

Public Attributes

const uint8_t * data_
 Image data for use with OpenCV. More...
 
sensor_msgs::Image image_
 ROS header. More...
 

Detailed Description

The code in the following namespace copies a lof of code from cv_bridge It does not depend on cv_bridge to not depend on OpenCV It re-defines a CvImage so that we can publish that object and not a sensor_msgs::Image, which requires a memory copy

Definition at line 45 of file raw_publisher.cpp.

Constructor & Destructor Documentation

◆ ImageTransportImage() [1/2]

ImageTransportImage::ImageTransportImage ( )
inline

Empty constructor.

Definition at line 86 of file raw_publisher.cpp.

◆ ImageTransportImage() [2/2]

ImageTransportImage::ImageTransportImage ( const sensor_msgs::Image &  image,
const uint8_t *  data 
)
inline

Constructor.

Definition at line 91 of file raw_publisher.cpp.

Member Data Documentation

◆ data_

const uint8_t* ImageTransportImage::data_

Image data for use with OpenCV.

Definition at line 81 of file raw_publisher.cpp.

◆ image_

sensor_msgs::Image ImageTransportImage::image_

ROS header.

Definition at line 80 of file raw_publisher.cpp.


The documentation for this class was generated from the following file:


image_transport
Author(s): Patrick Mihelich
autogenerated on Sun Apr 5 2020 03:15:28