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

lti::splitImageToHLS Class Reference
[Color Analysis]

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

#include <ltiSplitImageToHLS.h>

Inheritance diagram for lti::splitImageToHLS:
Inheritance graph
[legend]
Collaboration diagram for lti::splitImageToHLS:
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 &L, channel &S) const
virtual bool apply (const image &img, channel8 &H, channel8 &L, channel8 &S) const
virtual bool apply (const rgbPixel &pixel, float &H, float &L, float &S) const
virtual bool apply (const rgbPixel &pixel, ubyte &H, ubyte &L, ubyte &S) const

Detailed Description

Split image in its Hue - Luminance - Saturation channels.


Member Function Documentation

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

split the pixel in hue value H, luminance L and saturation S.

The values of each pixel will be between 0 and 255

Parameters:
pixel the pixel to be splitted
H the hue value
L the luminance value
S the saturation value

Implements lti::splitImage.

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

split the pixel in hue value H, luminance L and saturation S.

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

Parameters:
pixel the pixel to be splitted
H the hue value
L the luminance value
S the saturation value

Implements lti::splitImage.

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

split the image in hue channel H, luminance L and saturation channel S.

The values of each image will be between 0 and 255

Parameters:
img the image to be splitted
H the hue channel
L the luminance channel
S the saturation channel

Implements lti::splitImage.

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

split the image in hue channel H, luminance L and saturation channel S.

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

Parameters:
img the image to be splitted
H the hue channel
L the luminance channel
S the saturation channel

Implements lti::splitImage.

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

returns a pointer to a clone of the functor

Implements lti::functor.

virtual const char* lti::splitImageToHLS::getTypename (  )  const [virtual]

returns the name of this type


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