#include <ImageComposer.hpp>
Public Member Functions | |
virtual void | compose (const cv_bridge::CvImagePtr &target, const std::string &encoding)=0 |
virtual void | refreshCache (uint rows, uint cols)=0 |
virtual | ~ImageComposer () |
Classes implementing this interface encapsulate algorithm for putting pixels from multiple RealCameras together.
Definition at line 16 of file ImageComposer.hpp.
virtual virtual_camera::ImageComposer::~ImageComposer | ( | ) | [inline, virtual] |
Definition at line 18 of file ImageComposer.hpp.
virtual void virtual_camera::ImageComposer::compose | ( | const cv_bridge::CvImagePtr & | target, |
const std::string & | encoding | ||
) | [pure virtual] |
Fills the data of the target. Each of the subclasses can choose different method to do it. Precondition is that the cache is up to date.
const | cv_bridge::CvImagePtr & target |
const | std::string & encoding encoding of the camera image |
Implemented in virtual_camera::InterpolatingImageComposer.
virtual void virtual_camera::ImageComposer::refreshCache | ( | uint | rows, |
uint | cols | ||
) | [pure virtual] |
If the class caches some information, this call tells it to refresh the cache. Needs to be called when configuration of the cameras changes, number of cameras changes or position of cameras to each other changes.
uint | rows number of rows in the generated image |
uint | cols number of cols in the generated image |
Implemented in virtual_camera::InterpolatingImageComposer.