latest version v1.9 - last update 10 Apr 2010 |
This class implements the algorithm described in the paper "Comprehensive Colour Image Normalization" by Finlayson, Schiele and Crowley. More...
#include <ltiComprehensiveColourNormalization.h>
Classes | |
class | parameters |
the parameters for the class comprehensiveColourNormalization More... | |
Public Member Functions | |
comprehensiveColourNormalization () | |
comprehensiveColourNormalization (const parameters &par) | |
comprehensiveColourNormalization (const comprehensiveColourNormalization &other) | |
virtual | ~comprehensiveColourNormalization () |
virtual const char * | getTypeName () const |
virtual bool | apply (image &srcdest) const |
virtual bool | apply (const image &src, image &dest) const |
comprehensiveColourNormalization & | copy (const comprehensiveColourNormalization &other) |
comprehensiveColourNormalization & | operator= (const comprehensiveColourNormalization &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Protected Member Functions | |
bool | step (const channel &srcred, const channel &srcgreen, const channel &srcblue, channel &destred, channel &destgreen, channel &destblue, float &dist) const |
This class implements the algorithm described in the paper "Comprehensive Colour Image Normalization" by Finlayson, Schiele and Crowley.
The original paper can be found here: http://web.media.mit.edu/~bernt/Pubs/eccv98.ps.gz
The algorithm can eliminate dependencies from lighting geometry and illumination colour, normalizing both chromaticities and intensities of each channel.
lti::comprehensiveColourNormalization::comprehensiveColourNormalization | ( | ) |
default constructor
lti::comprehensiveColourNormalization::comprehensiveColourNormalization | ( | const parameters & | par | ) |
Construct a functor using the given parameters.
lti::comprehensiveColourNormalization::comprehensiveColourNormalization | ( | const comprehensiveColourNormalization & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::comprehensiveColourNormalization::~comprehensiveColourNormalization | ( | ) | [virtual] |
destructor
virtual bool lti::comprehensiveColourNormalization::apply | ( | const image & | src, | |
image & | dest | |||
) | const [virtual] |
operates on a copy of the given parameters.
Implements lti::colorNormalizationBase.
virtual bool lti::comprehensiveColourNormalization::apply | ( | image & | srcdest | ) | const [virtual] |
operates on the given parameter.
srcdest | image with the source data. The result will be left here too. |
Implements lti::colorNormalizationBase.
virtual functor* lti::comprehensiveColourNormalization::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::colorNormalizationBase.
comprehensiveColourNormalization& lti::comprehensiveColourNormalization::copy | ( | const comprehensiveColourNormalization & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::colorNormalizationBase.
const parameters& lti::comprehensiveColourNormalization::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::colorNormalizationBase.
virtual const char* lti::comprehensiveColourNormalization::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("comprehensiveColourNormalization")
Reimplemented from lti::colorNormalizationBase.
comprehensiveColourNormalization& lti::comprehensiveColourNormalization::operator= | ( | const comprehensiveColourNormalization & | other | ) |
bool lti::comprehensiveColourNormalization::step | ( | const channel & | srcred, | |
const channel & | srcgreen, | |||
const channel & | srcblue, | |||
channel & | destred, | |||
channel & | destgreen, | |||
channel & | destblue, | |||
float & | dist | |||
) | const [protected] |
One iteration of the comprehensive normalization from src to dest.
This method assumes that all channels are Connected (see matrix::getMode())
The square of the maximum distance between the src and the dest channels will be left on dist