Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
Standard image processor - convenience class for 1 to 1 image processing. More...
#include <imageprocessors.h>
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 |
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.
show | whether do display the resulting image on the screen |
scale | how to scale the display |
|
inline |
|
inlinevirtual |
|
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)
Implements ImageProcessor.
|
pure virtual |
overload this function and initialise the dest.img and the dest.name
Implemented in AvgImgProc, LineImgProc, ColorFilterImgProc, HSVImgProc, and BWImageProcessor.
|
pure virtual |
overload this function and do processing here
Implemented in AvgImgProc, LineImgProc, ColorFilterImgProc, HSVImgProc, and BWImageProcessor.
|
inlinevirtual |
perform the image calculation here
Implements ImageProcessor.
|
protected |
|
protected |