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

lti::orientationMap Class Reference

Generate an orientation map of a given channel. More...

#include <ltiOrientationMap.h>

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

List of all members.

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
orientationMapcopy (const orientationMap &other)
virtual functorclone () const
const parametersgetParameters () const

Protected Member Functions

channelogdMap (const channel &src, channel &direction, channel &relevance) const
channelgradientMap (const channel &src, channel &direction, channel &relevance) const

Detailed Description

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.

Warning:
: This functor is too old, maybe you are just looking for the lti::gradientFunctor in the polar coordinates mode.
See also:
orientationMap::parameters

Constructor & Destructor Documentation

lti::orientationMap::orientationMap (  ) 

default constructor

lti::orientationMap::orientationMap ( const orientationMap other  ) 

copy constructor

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

destructor


Member Function Documentation

bool lti::orientationMap::apply ( const channel8 src,
channel8 direction,
channel8 relevance 
) const

generate the orientation map

Parameters:
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.
Returns:
true if successful, false otherwise.
bool lti::orientationMap::apply ( const channel src,
channel direction,
channel relevance 
) const

generate the orientation map

Parameters:
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.
Returns:
true if successful, false otherwise.
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.

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

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

Parameters:
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.
Returns:
a reference to the direction.
channel& lti::orientationMap::ogdMap ( const channel src,
channel direction,
channel relevance 
) const [protected]

generate the orientation map

Parameters:
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.
Returns:
a reference to the direction.

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

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