latest version v1.9 - last update 10 Apr 2010 |
Generate an orientation map of a given channel. More...
#include <ltiOrientationMap.h>
Classes | |
class | parameters |
the parameters for the class orientationMap More... | |
Public Member Functions | |
orientationMap () | |
orientationMap (const orientationMap &other) | |
virtual | ~orientationMap () |
virtual const char * | getTypeName () const |
bool | apply (const channel &src, channel &direction, channel &relevance) const |
bool | apply (const channel8 &src, channel8 &direction, channel8 &relevance) const |
orientationMap & | copy (const orientationMap &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Protected Member Functions | |
channel & | ogdMap (const channel &src, channel &direction, channel &relevance) const |
channel & | gradientMap (const channel &src, channel &direction, channel &relevance) const |
Generate an orientation map of a given channel.
There are two modes for this functor:
The result of the analysis are two channels:
In the gradient mode the first resulting channel contains the angle (in radians) of the local gradient. The second channel contains the magnitude of the gradient.
In the ogd mode the first channel will contain the angle (in radians) with the local maximal energy, and the second channel contains a relevance-ratio of the obtained direction.
Note that the return angle is always perpendicular to the edge direction.
The angular value lies between -Pi and Pi.
lti::orientationMap::orientationMap | ( | ) |
default constructor
lti::orientationMap::orientationMap | ( | const orientationMap & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::orientationMap::~orientationMap | ( | ) | [virtual] |
destructor
bool lti::orientationMap::apply | ( | const channel8 & | src, | |
channel8 & | direction, | |||
channel8 & | relevance | |||
) | const |
generate the orientation map
src | channel8 with the source data. | |
direction | channel8 where the direction will be left. The values will be between -Pi and Pi. | |
relevance | channel8 with values between 0 and 1, which specify how relevant the direction information is. |
bool lti::orientationMap::apply | ( | const channel & | src, | |
channel & | direction, | |||
channel & | relevance | |||
) | const |
generate the orientation map
src | channel with the source data. | |
direction | channel where the direction will be left. The values will be between -Pi and Pi. | |
relevance | channel with values between 0 and 1, which specify how relevant the direction information is. |
virtual functor* lti::orientationMap::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
orientationMap& lti::orientationMap::copy | ( | const orientationMap & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::orientationMap::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::transform.
virtual const char* lti::orientationMap::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("orientationMap")
Reimplemented from lti::transform.
channel& lti::orientationMap::gradientMap | ( | const channel & | src, | |
channel & | direction, | |||
channel & | relevance | |||
) | const [protected] |
generate the orientation map
src | channel with the source data. | |
direction | channel where the direction will be left. The values will be between -Pi and Pi. | |
relevance | channel with values between 0 and 1, which specify how relevant the direction information is. |
direction
. channel& lti::orientationMap::ogdMap | ( | const channel & | src, | |
channel & | direction, | |||
channel & | relevance | |||
) | const [protected] |
generate the orientation map
src | channel with the source data. | |
direction | channel where the direction will be left. The values will be between -Pi and Pi. | |
relevance | channel with values between 0 and 1, which specify how relevant the direction information is. |
direction
.