LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::splitImageToHSI Class Reference
[Color Analysis]

Split image in its Hue - Saturation - Intensity channels. More...

#include <ltiSplitImageToHSI.h>

Inheritance diagram for lti::splitImageToHSI:
Inheritance graph
[legend]
Collaboration diagram for lti::splitImageToHSI:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 splitImageToHSI (void)
virtual const char * getTypeName () const
virtual functorclone () 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

Detailed Description

Split image in its Hue - Saturation - Intensity channels.


Constructor & Destructor Documentation

lti::splitImageToHSI::splitImageToHSI ( void   ) 

Constructor.


Member Function Documentation

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

Parameters:
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

Parameters:
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 image img,
channel8 H,
channel8 S,
channel8 I 
) const [virtual]

split the image in hue channel H, saturation S and intensity channel I.

The values of each image will be between 0 and 255

Parameters:
img the image to be splitted
H the hue channel
S the saturation channel
I the intensity channel

Implements lti::splitImage.

virtual bool lti::splitImageToHSI::apply ( const image img,
channel H,
channel S,
channel I 
) const [virtual]

split the image in hue channel H, saturation S and intensity channel I.

The values of each image will be between 0.0f and 1.0f

Parameters:
img the image to be splitted
H the hue channel
S the saturation channel
I the intensity channel

Implements lti::splitImage.

virtual functor* lti::splitImageToHSI::clone (  )  const [virtual]

returns a pointer to a clone of the functor.

Implements lti::functor.

virtual bool lti::splitImageToHSI::getFirst ( const image img,
channel8 c1 
) const [virtual]

Returns the first of the three channels into which the image is split.

If you need only one channel, this might be faster than calling apply().

Parameters:
img the source image
c1 the extracted channel

Reimplemented from lti::splitImage.

virtual bool lti::splitImageToHSI::getFirst ( const image img,
channel c1 
) const [virtual]

Returns the first of the three channels into which the image is split.

If you need only one channel, this might be faster than calling apply().

Parameters:
img the source image
c1 the extracted channel

Reimplemented from lti::splitImage.

bool lti::splitImageToHSI::getHue ( const image img,
channel8 hue 
) const

return the hue of the image.

If you need also the saturation and the intensity please use the apply methods, which are much faster!

bool lti::splitImageToHSI::getHue ( const image img,
channel hue 
) const

return the hue of the image.

If you need also the saturation and the intensity please use the apply methods, which are much faster!

bool lti::splitImageToHSI::getIntensity ( const image img,
channel8 intensity 
) const

return the intensity of the image.

If you need also the hue and the intensity please use the apply methods, which are much faster!

bool lti::splitImageToHSI::getIntensity ( const image img,
channel intensity 
) const

return the intensity of the image.

If you need also the hue and the intensity please use the apply methods, which are much faster!

bool lti::splitImageToHSI::getSaturation ( const image img,
channel8 saturation 
) const

return the saturation of the image.

If you need also the hue and the saturation please use the apply methods, which are much faster!

bool lti::splitImageToHSI::getSaturation ( const image img,
channel saturation 
) const

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 bool lti::splitImageToHSI::getSecond ( const image img,
channel8 c2 
) const [virtual]

Returns the second of the three channels into which the image is split.

If you need only one channel, this might be faster than calling apply().

Parameters:
img the source image
c2 the extracted channel

Reimplemented from lti::splitImage.

virtual bool lti::splitImageToHSI::getSecond ( const image img,
channel c2 
) const [virtual]

Returns the second of the three channels into which the image is split.

If you need only one channel, this might be faster than calling apply().

Parameters:
img the source image
c2 the extracted channel

Reimplemented from lti::splitImage.

virtual bool lti::splitImageToHSI::getThird ( const image img,
channel8 c3 
) const [virtual]

Returns the third of the three channels into which the image is split.

If you need only one channel, this might be faster than calling apply().

Parameters:
img the source image
c3 the extracted channel

Reimplemented from lti::splitImage.

virtual bool lti::splitImageToHSI::getThird ( const image img,
channel c3 
) const [virtual]

Returns the third of the three channels into which the image is split.

If you need only one channel, this might be faster than calling apply().

Parameters:
img the source image
c3 the extracted channel

Reimplemented from lti::splitImage.

virtual const char* lti::splitImageToHSI::getTypeName (  )  const [virtual]

returns the name of this type

Reimplemented from lti::splitImage.


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

Generated on Sat Apr 10 15:27:53 2010 for LTI-Lib by Doxygen 1.6.1