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

lti::splitImageToHSV Class Reference
[Color Analysis]

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

#include <ltiSplitImageToHSV.h>

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

List of all members.

Public Member Functions

virtual const char * getTypename () const
virtual functorclone () const
virtual bool apply (const image &img, channel &H, channel &S, channel &V) const
virtual bool apply (const image &img, channel8 &H, channel8 &S, channel8 &V) const
virtual bool apply (const rgbPixel &pixel, float &H, float &S, float &V) const
virtual bool apply (const rgbPixel &pixel, ubyte &H, ubyte &S, ubyte &V) const
bool getValue (const image &img, channel &value) const
bool getValue (const image &img, channel8 &value) 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 - Value channels.

The "value" corresponds to the maximum of the three R,G,B values.


Member Function Documentation

virtual bool lti::splitImageToHSV::apply ( const rgbPixel pixel,
ubyte H,
ubyte S,
ubyte V 
) const [virtual]

split the pixel in hue value H, saturation S and Value V.

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
V the Value value

Implements lti::splitImage.

virtual bool lti::splitImageToHSV::apply ( const rgbPixel pixel,
float &  H,
float &  S,
float &  V 
) const [virtual]

split the pixel in hue value H, saturation S and Value V.

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
V the Value value

Implements lti::splitImage.

virtual bool lti::splitImageToHSV::apply ( const image img,
channel8 H,
channel8 S,
channel8 V 
) const [virtual]

split the image in hue channel H, saturation S and value channel V.

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
V the value channel

Implements lti::splitImage.

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

split the image in hue channel H, saturation S and value channel V.

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
V the value channel

Implements lti::splitImage.

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

returns a pointer to a clone of the functor

Implements lti::functor.

virtual bool lti::splitImageToHSV::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::splitImageToHSV::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::splitImageToHSV::getTypename (  )  const [virtual]

returns the name of this type

bool lti::splitImageToHSV::getValue ( const image img,
channel8 value 
) const

shortcut to get the value channel only The values of each pixel will be between 0 and 255.

Parameters:
img the image to be splitted
value the value channel
bool lti::splitImageToHSV::getValue ( const image img,
channel value 
) const

shortcut to get the value channel only The values of each pixel will be between 0.0f and 1.0f.

Parameters:
img the image to be splitted
value the value channel

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

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