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
ColorFilterImgProc Struct Reference

filters for a specific color (requires HSV, so use HSVImgProc before) More...

#include <imageprocessors.h>

Inheritance diagram for ColorFilterImgProc:
Collaboration diagram for ColorFilterImgProc:

Public Member Functions

 ColorFilterImgProc (bool show, float scale, int minhue, int maxhue, int sat_threshold=100, int val_threshold=50)
 
virtual ~ColorFilterImgProc ()
 
virtual void initDestImage (Camera::CameraImage &dest, const Camera::CameraImage &src)
 overload this function and initialise the dest.img and the dest.name More...
 
virtual void process (const osg::Image *src, osg::Image *dest)
 overload this function and do processing here More...
 
- Public Member Functions inherited from StdImageProcessor
 StdImageProcessor (bool show, float scale)
 
virtual ~StdImageProcessor ()
 
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 ()
 

Public Attributes

int minhue
 
int maxhue
 
int sat_threshold
 
int val_threshold
 

Additional Inherited Members

- Protected Attributes inherited from StdImageProcessor
Camera::CameraImage _dest
 
Camera::CameraImage _src
 

Detailed Description

filters for a specific color (requires HSV, so use HSVImgProc before)

Parameters
minhueminimal hue value to pass through
See Also
HSVImgProc::Colors
Parameters
maxhuemaximal hue value to pass through
See Also
HSVImgProc::Colors
Parameters
satThresholdminimal saturation required to be considered as a color
valThresholdminimal "value" required to be considered as a color
See Also
HSVImgProc
StdImageProcessor

Constructor & Destructor Documentation

ColorFilterImgProc ( bool  show,
float  scale,
int  minhue,
int  maxhue,
int  sat_threshold = 100,
int  val_threshold = 50 
)
inline
virtual ~ColorFilterImgProc ( )
inlinevirtual

Member Function Documentation

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

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

Implements StdImageProcessor.

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

overload this function and do processing here

Implements StdImageProcessor.

Member Data Documentation

int maxhue
int minhue
int sat_threshold
int val_threshold

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