STIRA  0.1
Public Member Functions | Static Public Member Functions | List of all members
stira::steerable::ComputeOrientation Class Reference

A class to compute local orientation in an image. More...

#include <ComputeOrientation.h>

Public Member Functions

 ComputeOrientation ()
 Constructor.
 
 ~ComputeOrientation ()
 Destructor.
 

Static Public Member Functions

static ColorValue ConvertAngleToHSVMap (double angle)
 assigns for visualization a color triplet to an angle This mapping happens based on the HSV coilor space, where mapping an angle theta to color is implicit (when letting H vary and keeping S and V fixed to 1). This HSV color is then converted to an RGB triplet
 
static ColorValue ConvertAngleToRGBMap (double angle)
 assigns for visualization a color triplet to an angle This mapping is a simple interpolation between the RGB primaries between 0 and pi
 
static OrientationGridComputeDominantOrientationInputFreemanAdelson (ArrayGrid< double > *pResponseH2a, ArrayGrid< double > *pResponseH2b, ArrayGrid< double > *pResponseH2c, ArrayGrid< double > *pResponseH2d, ArrayGrid< double > *pResponseG2a, ArrayGrid< double > *pResponseG2b, ArrayGrid< double > *pResponseG2c)
 computes dominant orientation with separable steerable filters as described by from Freeman and Adelson: More...
 
static OrientationGridComputeDominantOrientationInputComplexPyramidLevel (PyramidLevel< std::complex< double > > *pPyrLevel)
 computes dominant orientation with resonse bands from a single level of the conmplex steerable pyramid More...
 

Detailed Description

A class to compute local orientation in an image.

Member Function Documentation

OrientationGrid * stira::steerable::ComputeOrientation::ComputeDominantOrientationInputComplexPyramidLevel ( PyramidLevel< std::complex< double > > *  pPyrLevel)
static

computes dominant orientation with resonse bands from a single level of the conmplex steerable pyramid

The relations have been computed analytically for the case of 4 orientations; other numbers of orientations are currently not available.

Parameters
pPyrLevelone level of the complex steerable pyramid
Returns
Grid containing local orientations and edge strengths

References stira::common::MathUtils::ComputeArgument(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::OrientationGrid::GetWidth(), stira::imagedata::OrientationGrid::SetAngle(), and stira::imagedata::OrientationGrid::SetMagnitude().

OrientationGrid * stira::steerable::ComputeOrientation::ComputeDominantOrientationInputFreemanAdelson ( ArrayGrid< double > *  pResponseH2a,
ArrayGrid< double > *  pResponseH2b,
ArrayGrid< double > *  pResponseH2c,
ArrayGrid< double > *  pResponseH2d,
ArrayGrid< double > *  pResponseG2a,
ArrayGrid< double > *  pResponseG2b,
ArrayGrid< double > *  pResponseG2c 
)
static

computes dominant orientation with separable steerable filters as described by from Freeman and Adelson:

W. T. Freeman and E. H. Adelson, The design and use of steerable filters, IEEE Trans. on Pattern Analysis and Machine Intelligence, vol. 13, no. 9, pp. 891 - 906, Sept. 1991. also available as technical report from http://people.csail.mit.edu/billf/steerpaper.html

Creates a new image object that becomes the responsability of the caller to delete

These filters form a quadrature pair: The H's are the odd filters and the G's are the even filters

Parameters
pResponseH2afirst odd separable steerable basis filter
pResponseH2bsecond odd separable steerable basis filter
pResponseH2cthird odd separable steerable basis filter
pResponseH2dfourth odd separable steerable basis filter
pResponseG2afirst even separable steerable basis filter
pResponseG2bsecond even separable steerable basis filter
pResponseG2cthird even separable steerable basis filter
Returns
Grid containing local orientations and edge strengths

References stira::common::MathUtils::ComputeArgument(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::imagedata::OrientationGrid::SetAngle(), and stira::imagedata::OrientationGrid::SetMagnitude().

Referenced by stira::steerable::ComputeSteerableFilteredImages::FilterAlongDominantOrientationG(), stira::steerable::ComputeSteerableFilteredImages::FilterAlongDominantOrientationH(), and stira::steerable::ComputeSteerableFilteredImages::GetOrientationGrid().


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