All Classes Namespaces Files Functions Variables Typedefs Defines
Public Member Functions | Private Member Functions | Private Attributes
virtual_camera::InterpolatingImageComposer Class Reference

#include <InterpolatingImageComposer.hpp>

Inheritance diagram for virtual_camera::InterpolatingImageComposer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void compose (const cv_bridge::CvImagePtr &target, const std::string &encoding)
 InterpolatingImageComposer (const RealCameraPtrListPtr &realCameras)
void refreshCache (uint rows, uint cols)

Private Member Functions

void prepareRealCameraImages (const std::string &encoding)

Private Attributes

uint cacheSize
std::vector
< cv_bridge::CvImageConstPtr > 
camsImg
std::vector< bool > camsNeeded
std::vector< TableP2ConstPtrcamsPos
RealCameraPtrListPtr realCameras
boost::shared_array< float > weightCache

Detailed Description

Image composer that uses linear interpolation to combine points from the RealCameras based on their weight.

Author:
Jan Brabec

Definition at line 24 of file InterpolatingImageComposer.hpp.


Constructor & Destructor Documentation

Constructs the object with list containing the realCameras. The list can be modified but, after each modification it is safe to call refreshCache()

Parameters:
constcv_bridge::CvImagePtr & realCameras

Definition at line 7 of file InterpolatingImageComposer.cpp.


Member Function Documentation

void virtual_camera::InterpolatingImageComposer::compose ( const cv_bridge::CvImagePtr &  target,
const std::string &  encoding 
) [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.

Parameters:
constcv_bridge::CvImagePtr & target
conststd::string & encoding encoding of the camera image

Implements virtual_camera::ImageComposer.

Definition at line 56 of file InterpolatingImageComposer.cpp.

void virtual_camera::InterpolatingImageComposer::prepareRealCameraImages ( const std::string &  encoding) [private]

Definition at line 85 of file InterpolatingImageComposer.cpp.

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.

Parameters:
uintrows number of rows in the generated image
uintcols number of cols in the generated image

Implements virtual_camera::ImageComposer.

Definition at line 14 of file InterpolatingImageComposer.cpp.


Member Data Documentation

Definition at line 28 of file InterpolatingImageComposer.hpp.

std::vector<cv_bridge::CvImageConstPtr> virtual_camera::InterpolatingImageComposer::camsImg [private]

Definition at line 30 of file InterpolatingImageComposer.hpp.

Definition at line 29 of file InterpolatingImageComposer.hpp.

Definition at line 31 of file InterpolatingImageComposer.hpp.

Definition at line 26 of file InterpolatingImageComposer.hpp.

boost::shared_array<float> virtual_camera::InterpolatingImageComposer::weightCache [private]

Definition at line 27 of file InterpolatingImageComposer.hpp.


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


virtual_camera
Author(s): Jan Brabec; maintained by Tomas Petricek / petrito1@cmp.felk.cvut
autogenerated on Tue Dec 10 2013 14:58:12