#include <ros_image_texture.h>
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_ |
Definition at line 57 of file ros_image_texture.h.
Definition at line 47 of file ros_image_texture.cpp.
Definition at line 63 of file ros_image_texture.cpp.
void rviz::ROSImageTexture::addMessage | ( | const sensor_msgs::Image::ConstPtr & | image | ) |
Definition at line 274 of file ros_image_texture.cpp.
void rviz::ROSImageTexture::clear | ( | ) |
Definition at line 68 of file ros_image_texture.cpp.
uint32_t rviz::ROSImageTexture::getHeight | ( | ) | [inline] |
Definition at line 71 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 67 of file ros_image_texture.h.
uint32_t rviz::ROSImageTexture::getWidth | ( | ) | [inline] |
Definition at line 70 of file ros_image_texture.h.
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.
bool rviz::ROSImageTexture::update | ( | ) |
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.
sensor_msgs::Image::ConstPtr rviz::ROSImageTexture::current_image_ [private] |
Definition at line 84 of file ros_image_texture.h.
Ogre::Image rviz::ROSImageTexture::empty_image_ [private] |
Definition at line 89 of file ros_image_texture.h.
uint32_t rviz::ROSImageTexture::height_ [private] |
Definition at line 92 of file ros_image_texture.h.
double rviz::ROSImageTexture::max_ [private] |
Definition at line 97 of file ros_image_texture.h.
std::deque<double> rviz::ROSImageTexture::max_buffer_ [private] |
Definition at line 100 of file ros_image_texture.h.
unsigned rviz::ROSImageTexture::median_frames_ [private] |
Definition at line 98 of file ros_image_texture.h.
double rviz::ROSImageTexture::min_ [private] |
Definition at line 96 of file ros_image_texture.h.
std::deque<double> rviz::ROSImageTexture::min_buffer_ [private] |
Definition at line 99 of file ros_image_texture.h.
boost::mutex rviz::ROSImageTexture::mutex_ [private] |
Definition at line 85 of file ros_image_texture.h.
bool rviz::ROSImageTexture::new_image_ [private] |
Definition at line 86 of file ros_image_texture.h.
bool rviz::ROSImageTexture::normalize_ [private] |
Definition at line 95 of file ros_image_texture.h.
Ogre::TexturePtr rviz::ROSImageTexture::texture_ [private] |
Definition at line 88 of file ros_image_texture.h.
uint32_t rviz::ROSImageTexture::width_ [private] |
Definition at line 91 of file ros_image_texture.h.