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

lti::colorQuantization Class Reference

Abstract parent class for all color quantization algorithms All color quantization functors must overload the apply-member defined here. More...

#include <ltiColorQuantization.h>

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

List of all members.

Classes

class  parameters
 the parameters for the class colorQuantization More...

Public Member Functions

 colorQuantization ()
 colorQuantization (const colorQuantization &other)
virtual ~colorQuantization ()
virtual const char * getTypeName () const
virtual bool apply (const image &src, channel8 &dest, palette &thePalette) const =0
virtual bool apply (image &srcdest) const
virtual bool apply (const image &src, image &dest) const
colorQuantizationcopy (const colorQuantization &other)
virtual functorclone () const =0
const parametersgetParameters () const

Detailed Description

Abstract parent class for all color quantization algorithms All color quantization functors must overload the apply-member defined here.

See also:
colorQuantization::apply. The final quantize color image can be generated using the lti::usePalette functor.

Constructor & Destructor Documentation

lti::colorQuantization::colorQuantization (  ) 

default constructor

lti::colorQuantization::colorQuantization ( const colorQuantization other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::colorQuantization::~colorQuantization (  )  [virtual]

destructor


Member Function Documentation

virtual bool lti::colorQuantization::apply ( const image src,
image dest 
) const [virtual]

operates on the given parameter.

Parameters:
src image with the source data.
dest image with only the number of colors specified in the parameters
Returns:
true if apply successful or false otherwise.

Reimplemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.

virtual bool lti::colorQuantization::apply ( image srcdest  )  const [virtual]

operates on the given parameter.

Parameters:
srcdest image with the source data. The result will be left here too.
Returns:
true if apply successful or false otherwise.

Reimplemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.

virtual bool lti::colorQuantization::apply ( const image src,
channel8 dest,
palette thePalette 
) const [pure virtual]

operates on a copy of the given parameters.

Parameters:
src original image with the true-color data
dest channel8 where the indexes of the also calculated palette will be.
thePalette the color palette used by the channel.
Returns:
true if apply successful or false otherwise.

Implemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.

virtual functor* lti::colorQuantization::clone (  )  const [pure virtual]

returns a pointer to a clone of this functor.

Implements lti::functor.

Implemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.

colorQuantization& lti::colorQuantization::copy ( const colorQuantization other  ) 

copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::functor.

Reimplemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.

const parameters& lti::colorQuantization::getParameters (  )  const

returns used parameters

Reimplemented from lti::functor.

Reimplemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.

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

returns the name of this type ("colorQuantization")

Reimplemented from lti::functor.

Reimplemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.


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

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