Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StdImageProcessor Struct Referenceabstract

Standard image processor - convenience class for 1 to 1 image processing. More...

#include <imageprocessors.h>

Inheritance diagram for StdImageProcessor:
Collaboration diagram for StdImageProcessor:

Public Member Functions

 StdImageProcessor (bool show, float scale)
 
virtual ~StdImageProcessor ()
 
virtual void initDestImage (Camera::CameraImage &dest, const Camera::CameraImage &src)=0
 overload this function and initialise the dest.img and the dest.name More...
 
virtual void process (const osg::Image *src, osg::Image *dest)=0
 overload this function and do processing here More...
 
virtual Camera::CameraImage init (const Camera::CameraImages &imgs)
 initialization with all images so far. More...
 
virtual void process ()
 perform the image calculation here More...
 
- Public Member Functions inherited from ImageProcessor
 ImageProcessor ()
 
virtual ~ImageProcessor ()
 

Protected Attributes

Camera::CameraImage _dest
 
Camera::CameraImage _src
 

Detailed Description

Standard image processor - convenience class for 1 to 1 image processing.

The last image of the stack is the source (output of last processor). Simpler to implement than ImageProcessor.

Parameters
showwhether do display the resulting image on the screen
scalehow to scale the display
See Also
ImageProcessor

Constructor & Destructor Documentation

StdImageProcessor ( bool  show,
float  scale 
)
inline
virtual ~StdImageProcessor ( )
inlinevirtual

Member Function Documentation

virtual Camera::CameraImage init ( const Camera::CameraImages imgs)
inlinevirtual

initialization with all images so far.

The last image in the list is probably the one to use for processing. (output from last processor)

Returns
result image structure of this processor

Implements ImageProcessor.

virtual void initDestImage ( Camera::CameraImage dest,
const Camera::CameraImage src 
)
pure virtual

overload this function and initialise the dest.img and the dest.name

Implemented in AvgImgProc, LineImgProc, ColorFilterImgProc, HSVImgProc, and BWImageProcessor.

virtual void process ( const osg::Image *  src,
osg::Image *  dest 
)
pure virtual

overload this function and do processing here

Implemented in AvgImgProc, LineImgProc, ColorFilterImgProc, HSVImgProc, and BWImageProcessor.

virtual void process ( )
inlinevirtual

perform the image calculation here

Implements ImageProcessor.

Member Data Documentation

Camera::CameraImage _dest
protected
Camera::CameraImage _src
protected

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