latest version v1.9 - last update 10 Apr 2010 |
This functor splits an image into its three channels (R.G,b) and then calculates the Minimum, Maximum, Average, Median or Average and Variance over their values, depending on the parameter type. More...
#include <ltiBrightRGB.h>
Classes | |
class | parameters |
the parameters for the class brightRGB More... | |
Public Member Functions | |
brightRGB () | |
brightRGB (const brightRGB &other) | |
virtual | ~brightRGB () |
virtual const char * | getTypeName () const |
bool | apply (const image &src, dvector &dest) const |
brightRGB & | copy (const brightRGB &other) |
brightRGB & | operator= (const brightRGB &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Protected Member Functions | |
bool | getMin (const image &img, dvector &dest) const |
bool | getMax (const image &img, dvector &dest) const |
bool | getAverage (const image &img, dvector &dest) const |
bool | getMedian (const image &img, dvector &dest) const |
This functor splits an image into its three channels (R.G,b) and then calculates the Minimum, Maximum, Average, Median or Average and Variance over their values, depending on the parameter type.
It is possible to define a "transparent color" which will be ignored by the calculation.
lti::brightRGB::brightRGB | ( | ) |
default constructor
lti::brightRGB::brightRGB | ( | const brightRGB & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::brightRGB::~brightRGB | ( | ) | [virtual] |
destructor
Calculates the Minimum, Maximum, Average or Median of each channel of the given image, depending on the value of the parameter type.
Reimplemented from lti::globalFeatureExtractor.
virtual functor* lti::brightRGB::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Reimplemented from lti::globalFeatureExtractor.
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::globalFeatureExtractor.
Calculates the average value of each channel of the image.
If the parameter transparent is true, the transparent color defined by the parameter transColor is not taken into account.
img | image to be evaluated | |
dest | vector with the average value of all not transparent points between R, G and B. |
Calculates the maximum value of each channel of the image.
If the parameter transparent is true, the transparent color defined by the parameter transColor is not taken into account.
img | image to be evaluated | |
dest | vector with the maximum value of all not transparent points between R, G and B. |
Calculates the median of all values of each channel of the image.
If the parameter transparent is true, the transparent color defined by the parameter transColor is not taken into account.
img | image to be evaluated | |
dest | vector with the average value of all not transparent points between R, G and B. |
Calculates the minimum value of each channel of the image.
If the parameter transparent is true, the transparent color defined by the parameter transColor is not taken into account.
img | image to be evaluated | |
dest | vector with the minimum value of all not transparent points between R, G and B. |
const parameters& lti::brightRGB::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::globalFeatureExtractor.
virtual const char* lti::brightRGB::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("brightRGB")
Reimplemented from lti::globalFeatureExtractor.