converts the image to a HSV coded image
More...
#include <imageprocessors.h>
|
| | HSVImgProc (bool show, float scale) |
| |
| virtual | ~HSVImgProc () |
| |
| 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...
|
| |
| void | RGBtoHSV (unsigned char r, unsigned char g, unsigned char b, unsigned char &h, unsigned char &s, unsigned char &v) |
| | converts RGB to HSV color model; r,g,b values are from 0 to 255; h = [0,180]+255, s = [0,255], v = [0,255]; h is the standard hue value/2 (since 360 cannot be represented) and 255 if undefined (gray) More...
|
| |
| | 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...
|
| |
| | ImageProcessor () |
| |
| virtual | ~ImageProcessor () |
| |
converts the image to a HSV coded image
- See Also
- StdImageProcessor. If this image is shown the h,s,v is displayed by r,g,b! The h (hue) values are given by HSVImgProc::Colors
| Enumerator |
|---|
| Red |
|
| Yellow |
|
| Green |
|
| Cyan |
|
| Blue |
|
| Magenta |
|
| Red2 |
|
| Gray |
|
| Span |
|
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 |
| void RGBtoHSV |
( |
unsigned char |
r, |
|
|
unsigned char |
g, |
|
|
unsigned char |
b, |
|
|
unsigned char & |
h, |
|
|
unsigned char & |
s, |
|
|
unsigned char & |
v |
|
) |
| |
|
inline |
converts RGB to HSV color model; r,g,b values are from 0 to 255; h = [0,180]+255, s = [0,255], v = [0,255]; h is the standard hue value/2 (since 360 cannot be represented) and 255 if undefined (gray)
The documentation for this struct was generated from the following file: