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

lti::qmfEnergy Class Reference

The qmfEnergy is a functor for extraction of texture features. More...

#include <ltiQmfEnergy.h>

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

List of all members.

Classes

class  parameters
 the parameters for the class qmfEnergy More...

Public Member Functions

 qmfEnergy ()
 qmfEnergy (const parameters &param)
 qmfEnergy (const qmfEnergy &other)
virtual ~qmfEnergy ()
virtual const char * getTypeName () const
bool apply (const image &src, dvector &feature) const
bool apply (channel &srcdest) const
bool apply (const channel &src, channel &dest) const
bool apply (const channel &src, dvector &dest) const
qmfEnergycopy (const qmfEnergy &other)
virtual functorclone () const
const parametersgetParameters () const

Protected Member Functions

void getChannels (const channel &chnl, std::vector< channel > &chnls) const
void padChannel (const int &levels, const channel &chnl, channel &padchnl) const

Detailed Description

The qmfEnergy is a functor for extraction of texture features.

As described in Alvarado et. al. "Axon2 - A visual object recognition system for non-rigid objects" SPPAM 2001.

The channel will be separated using a QMF-Bank in several frecuency channels. After that the "energy" is calculated by applying the square function to each pixel. The resulting energy subchannels can be filtered using the so called "powerFilter". All channels are merged by upsampling the "smaller" resolutions or alternativelly by downsampling the higher resolutions.

The resulting images can be convolved with a gaussian kernel. The last optional step for the qmfEnergy is to apply the square root to each pixel.

From the resulting image an histogram can be generated.


Constructor & Destructor Documentation

lti::qmfEnergy::qmfEnergy (  ) 

default constructor

lti::qmfEnergy::qmfEnergy ( const parameters param  ) 

Constructor with parameters.

lti::qmfEnergy::qmfEnergy ( const qmfEnergy other  ) 

copy constructor

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

destructor


Member Function Documentation

bool lti::qmfEnergy::apply ( const channel src,
dvector dest 
) const [virtual]

extract the histogram of the energy image calculated from the given channel.

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest feature vector generated as a histogram of the energy image
Returns:
true if apply successful or false otherwise.

Reimplemented from lti::globalFeatureExtractor.

bool lti::qmfEnergy::apply ( const channel src,
channel dest 
) const

generate the energy image of the given channel operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest channel where the resulting energy image be left.
Returns:
true if apply successful or false otherwise.
bool lti::qmfEnergy::apply ( channel srcdest  )  const

generate the energy image of the given channel operates on the given parameter.

Parameters:
srcdest channel with the source data. The resulting energy image will be left here too.
Returns:
true if apply successful or false otherwise.
bool lti::qmfEnergy::apply ( const image src,
dvector feature 
) const [virtual]

extract histogram of energy image for each color channel of the given image.

Parameters:
src image with the source data.
feature the feature vector generated by the concatenation of the feature vector for each separated color channel RGB.
Returns:
true if apply successful or false otherwise.

Reimplemented from lti::globalFeatureExtractor.

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

returns a pointer to a clone of this functor.

Reimplemented from lti::globalFeatureExtractor.

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

copy data of "other" functor.

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

Reimplemented from lti::globalFeatureExtractor.

void lti::qmfEnergy::getChannels ( const channel chnl,
std::vector< channel > &  chnls 
) const [protected]

get a channel for each band in the wavelet transform of the channel

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

returns used parameters

Reimplemented from lti::globalFeatureExtractor.

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

returns the name of this type ("qmfEnergy")

Reimplemented from lti::globalFeatureExtractor.

void lti::qmfEnergy::padChannel ( const int &  levels,
const channel chnl,
channel padchnl 
) const [protected]

pad the source channel to have the proper dimensions


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

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