![]() |
latest version v1.9 - last update 10 Apr 2010 |
![]() |
Split image in its Hue - Saturation - Intensity channels. More...
#include <ltiSplitImageToHSI.h>
Public Member Functions | |
splitImageToHSI (void) | |
virtual const char * | getTypeName () const |
virtual functor * | clone () const |
virtual bool | apply (const image &img, channel &H, channel &S, channel &I) const |
virtual bool | apply (const image &img, channel8 &H, channel8 &S, channel8 &I) const |
virtual bool | apply (const rgbPixel &pixel, float &H, float &S, float &I) const |
virtual bool | apply (const rgbPixel &pixel, ubyte &H, ubyte &S, ubyte &I) const |
bool | getHue (const image &img, channel &hue) const |
bool | getHue (const image &img, channel8 &hue) const |
bool | getSaturation (const image &img, channel &saturation) const |
bool | getSaturation (const image &img, channel8 &saturation) const |
bool | getIntensity (const image &img, channel &intensity) const |
bool | getIntensity (const image &img, channel8 &intensity) const |
virtual bool | getFirst (const image &img, channel &c1) const |
virtual bool | getFirst (const image &img, channel8 &c1) const |
virtual bool | getSecond (const image &img, channel &c2) const |
virtual bool | getSecond (const image &img, channel8 &c2) const |
virtual bool | getThird (const image &img, channel &c3) const |
virtual bool | getThird (const image &img, channel8 &c3) const |
Split image in its Hue - Saturation - Intensity channels.
lti::splitImageToHSI::splitImageToHSI | ( | void | ) |
Constructor.
virtual bool lti::splitImageToHSI::apply | ( | const rgbPixel & | pixel, | |
ubyte & | H, | |||
ubyte & | S, | |||
ubyte & | I | |||
) | const [virtual] |
split the pixel in hue value H, saturation S and intensity value I.
The values of each pixel will be between 0 and 255
pixel | the pixel to be splitted | |
H | the hue value | |
S | the saturation value | |
I | the intensity value |
Implements lti::splitImage.
virtual bool lti::splitImageToHSI::apply | ( | const rgbPixel & | pixel, | |
float & | H, | |||
float & | S, | |||
float & | I | |||
) | const [virtual] |
split the pixel in hue value H, saturation S and intensity value I.
The values of each pixel will be between 0.0f and 1.0f
pixel | the pixel to be splitted | |
H | the hue value | |
S | the saturation value | |
I | the intensity value |
Implements lti::splitImage.
virtual functor* lti::splitImageToHSI::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the functor.
Implements lti::functor.
return the hue of the image.
If you need also the saturation and the intensity please use the apply methods, which are much faster!
return the hue of the image.
If you need also the saturation and the intensity please use the apply methods, which are much faster!
return the intensity of the image.
If you need also the hue and the intensity please use the apply methods, which are much faster!
return the intensity of the image.
If you need also the hue and the intensity please use the apply methods, which are much faster!
return the saturation of the image.
If you need also the hue and the saturation please use the apply methods, which are much faster!
return the saturation of the image.
If you need also the hue and the intensity please use the apply methods, which are much faster!
virtual const char* lti::splitImageToHSI::getTypeName | ( | ) | const [virtual] |
returns the name of this type
Reimplemented from lti::splitImage.