Public Member Functions | Private Member Functions | Private Attributes
rviz::ROSImageTexture Class Reference

#include <ros_image_texture.h>

List of all members.

Public Member Functions

void addMessage (const sensor_msgs::Image::ConstPtr &image)
void clear ()
uint32_t getHeight ()
const
sensor_msgs::Image::ConstPtr & 
getImage ()
const Ogre::TexturePtr & getTexture ()
uint32_t getWidth ()
 ROSImageTexture ()
void setMedianFrames (unsigned median_frames)
void setNormalizeFloatImage (bool normalize, double min=0.0, double max=1.0)
bool update ()
 ~ROSImageTexture ()

Private Member Functions

template<typename T >
void normalize (T *image_data, size_t image_data_size, std::vector< uint8_t > &buffer)
double updateMedian (std::deque< double > &buffer, double new_value)

Private Attributes

sensor_msgs::Image::ConstPtr current_image_
Ogre::Image empty_image_
uint32_t height_
double max_
std::deque< double > max_buffer_
unsigned median_frames_
double min_
std::deque< double > min_buffer_
boost::mutex mutex_
bool new_image_
bool normalize_
Ogre::TexturePtr texture_
uint32_t width_

Detailed Description

Definition at line 56 of file ros_image_texture.h.


Constructor & Destructor Documentation

Definition at line 47 of file ros_image_texture.cpp.

Definition at line 63 of file ros_image_texture.cpp.


Member Function Documentation

void rviz::ROSImageTexture::addMessage ( const sensor_msgs::Image::ConstPtr &  image)

Definition at line 274 of file ros_image_texture.cpp.

Definition at line 68 of file ros_image_texture.cpp.

uint32_t rviz::ROSImageTexture::getHeight ( ) [inline]

Definition at line 70 of file ros_image_texture.h.

const sensor_msgs::Image::ConstPtr & rviz::ROSImageTexture::getImage ( )

Definition at line 79 of file ros_image_texture.cpp.

const Ogre::TexturePtr& rviz::ROSImageTexture::getTexture ( ) [inline]

Definition at line 66 of file ros_image_texture.h.

uint32_t rviz::ROSImageTexture::getWidth ( ) [inline]

Definition at line 69 of file ros_image_texture.h.

template<typename T >
void rviz::ROSImageTexture::normalize ( T *  image_data,
size_t  image_data_size,
std::vector< uint8_t > &  buffer 
) [private]

Definition at line 114 of file ros_image_texture.cpp.

void rviz::ROSImageTexture::setMedianFrames ( unsigned  median_frames)

Definition at line 86 of file ros_image_texture.cpp.

void rviz::ROSImageTexture::setNormalizeFloatImage ( bool  normalize,
double  min = 0.0,
double  max = 1.0 
)

Definition at line 105 of file ros_image_texture.cpp.

Definition at line 168 of file ros_image_texture.cpp.

double rviz::ROSImageTexture::updateMedian ( std::deque< double > &  buffer,
double  new_value 
) [private]

Definition at line 91 of file ros_image_texture.cpp.


Member Data Documentation

sensor_msgs::Image::ConstPtr rviz::ROSImageTexture::current_image_ [private]

Definition at line 83 of file ros_image_texture.h.

Ogre::Image rviz::ROSImageTexture::empty_image_ [private]

Definition at line 88 of file ros_image_texture.h.

uint32_t rviz::ROSImageTexture::height_ [private]

Definition at line 91 of file ros_image_texture.h.

double rviz::ROSImageTexture::max_ [private]

Definition at line 96 of file ros_image_texture.h.

std::deque<double> rviz::ROSImageTexture::max_buffer_ [private]

Definition at line 99 of file ros_image_texture.h.

Definition at line 97 of file ros_image_texture.h.

double rviz::ROSImageTexture::min_ [private]

Definition at line 95 of file ros_image_texture.h.

std::deque<double> rviz::ROSImageTexture::min_buffer_ [private]

Definition at line 98 of file ros_image_texture.h.

boost::mutex rviz::ROSImageTexture::mutex_ [private]

Definition at line 84 of file ros_image_texture.h.

Definition at line 85 of file ros_image_texture.h.

Definition at line 94 of file ros_image_texture.h.

Ogre::TexturePtr rviz::ROSImageTexture::texture_ [private]

Definition at line 87 of file ros_image_texture.h.

uint32_t rviz::ROSImageTexture::width_ [private]

Definition at line 90 of file ros_image_texture.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Mon Oct 6 2014 07:26:37