latest version v1.9 - last update 10 Apr 2010 |
The curvature feature is similar to the lti::orientationFeature, but instead of creating a histogram of the pixel orientations, a histogram of the curvature of a pixel will be done, considering also the "relevance" channel when constructing it. More...
#include <ltiCurvatureFeature.h>
Classes | |
class | parameters |
the parameters for the class curvatureFeature More... | |
Public Member Functions | |
curvatureFeature () | |
curvatureFeature (const curvatureFeature &other) | |
virtual | ~curvatureFeature () |
virtual const char * | getTypeName () const |
bool | apply (const channel &orientation, const channel &relevance, dvector &dest) const |
bool | apply (const channel &orientation, const channel &relevance, channel &dest) const |
bool | apply (const channel &orientation, const channel &relevance, channel &dest, dvector &vct) const |
curvatureFeature & | copy (const curvatureFeature &other) |
curvatureFeature & | operator= (const curvatureFeature &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
The curvature feature is similar to the lti::orientationFeature, but instead of creating a histogram of the pixel orientations, a histogram of the curvature of a pixel will be done, considering also the "relevance" channel when constructing it.
All values in the relevance channel smaller than the relevanceThreshold
will be ignored (will be marked with zero curvature).
The curvature is defined as the derivative of the tangent of a given contour. This will be approximated here using the differences of orientation between the neighbour pixels.
lti::curvatureFeature::curvatureFeature | ( | ) |
default constructor
lti::curvatureFeature::curvatureFeature | ( | const curvatureFeature & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::curvatureFeature::~curvatureFeature | ( | ) | [virtual] |
destructor
bool lti::curvatureFeature::apply | ( | const channel & | orientation, | |
const channel & | relevance, | |||
channel & | dest, | |||
dvector & | vct | |||
) | const |
Computes a curvature channel and the corresponding feature vector from the given orientation and relevance channels.
orientation | channel with the angle of the tangent for all pixels | |
relevance | channel with a "relevance"-degree for the orientation channel. Values of 0 mean, the angle in the orientation channel has to be ignored, and 1 that the value in the orientation channel is reliable. | |
dest | channel with the curvature value computed for each pixel. | |
vct | feature vector |
bool lti::curvatureFeature::apply | ( | const channel & | orientation, | |
const channel & | relevance, | |||
channel & | dest | |||
) | const |
Computes a curvature channel from the given orientation and relevance channels.
orientation | channel with the angle of the tangent for all pixels | |
relevance | channel with a "relevance"-degree for the orientation channel. Values of 0 mean, the angle in the orientation channel has to be ignored, and 1 that the value in the orientation channel is reliable. | |
dest | channel with the curvature value computed for each pixel. |
bool lti::curvatureFeature::apply | ( | const channel & | orientation, | |
const channel & | relevance, | |||
dvector & | dest | |||
) | const |
compute the feature vector
orientation | channel with the angle of the tangent for all pixels | |
relevance | channel with a "relevance"-degree for the orientation channel. Values of 0 mean, the angle in the orientation channel has to be ignored, and 1 that the value in the orientation channel is reliable. | |
dest | feature vector. |
virtual functor* lti::curvatureFeature::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Reimplemented from lti::globalFeatureExtractor.
curvatureFeature& lti::curvatureFeature::copy | ( | const curvatureFeature & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::globalFeatureExtractor.
const parameters& lti::curvatureFeature::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::globalFeatureExtractor.
virtual const char* lti::curvatureFeature::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("curvatureFeature")
Reimplemented from lti::globalFeatureExtractor.
curvatureFeature& lti::curvatureFeature::operator= | ( | const curvatureFeature & | other | ) |