A.I.M.S algorithms


BaseHarrisDetector< T > Class Template Referenceabstract

Harris Corner Detector. More...

#include <aims/math/harris.h>

Inheritance diagram for BaseHarrisDetector< T >:
Collaboration diagram for BaseHarrisDetector< T >:

Public Member Functions

 BaseHarrisDetector (const AimsData< T > &image, const double sigma=1.2, const double k=0.6, const double epsilon=1E-3, const T levels=(T) 255)
 Constructor. More...
 
virtual double gaussian (const double x, const double y, const double z)
 Gaussian function. More...
 
virtual void computeDerivatives ()
 
virtual double harrisMeasure (const int x, const int y, const int z, const int t)=0
 Compute harris measure for a pixel. More...
 
virtual void computeHarrisMap ()
 Compute the Harris measure for each pixel of the image. More...
 
virtual bool isSpatialMaxima (const int x, const int y, const int z, const int t)=0
 Check that pixel is a maxima of the Harris map. More...
 
virtual void computeCorners ()
 Perfom the Harris Corner Detection. More...
 
virtual void filter (int minDistance)
 Filter detected corners. More...
 
AimsData< double > harrisMap ()
 Get processed Harris map. More...
 
aims::BucketMap< Voidcorners ()
 Get detected corners. More...
 

Protected Attributes

double _epsilon
 
double _k
 
double _sigma
 
double _sigma2
 
double _u
 
_levels
 
double _f
 
int _radius
 
int _window
 
AimsData< T > _image
 
AimsData< double > _g
 
AimsData< double > _hmap
 
aims::BucketMap< double > _corners
 

Detailed Description

template<class T>
class BaseHarrisDetector< T >

Harris Corner Detector.

k = det(A) - k * trace(A)^2

Where A is the second-moment matrix

      | Lx²(x+dx,y+dy)    Lx.Ly(x+dx,y+dy) |

A = Sum | | * Gaussian(dx, dy) dx,dy | Lx.Ly(x+dx,y+dy) Ly²(x+dx,y+dy) |

and k = a / (1 + a)^2,

where "a" is the mininmum ratio between the two eigenvalues for a point to be considered as a corner.

Definition at line 60 of file harris.h.

Constructor & Destructor Documentation

template<class T >
BaseHarrisDetector< T >::BaseHarrisDetector ( const AimsData< T > &  image,
const double  sigma = 1.2,
const double  k = 0.6,
const double  epsilon = 1E-3,
const T  levels = (T) 255 
)

Constructor.

Member Function Documentation

template<class T >
virtual void BaseHarrisDetector< T >::computeCorners ( )
virtual

Perfom the Harris Corner Detection.

template<class T >
virtual void BaseHarrisDetector< T >::computeDerivatives ( )
inlinevirtual

Reimplemented in HarrisDetector< T, 2 >.

Definition at line 79 of file harris.h.

template<class T >
virtual void BaseHarrisDetector< T >::computeHarrisMap ( )
virtual

Compute the Harris measure for each pixel of the image.

template<class T >
aims::BucketMap<Void> BaseHarrisDetector< T >::corners ( )

Get detected corners.

template<class T >
virtual void BaseHarrisDetector< T >::filter ( int  minDistance)
virtual

Filter detected corners.

Parameters
minDistanceminimum distance between corners
template<class T >
virtual double BaseHarrisDetector< T >::gaussian ( const double  x,
const double  y,
const double  z 
)
virtual

Gaussian function.

template<class T >
AimsData<double> BaseHarrisDetector< T >::harrisMap ( )

Get processed Harris map.

template<class T >
virtual double BaseHarrisDetector< T >::harrisMeasure ( const int  x,
const int  y,
const int  z,
const int  t 
)
pure virtual

Compute harris measure for a pixel.

Implemented in HarrisDetector< T, 2 >.

template<class T >
virtual bool BaseHarrisDetector< T >::isSpatialMaxima ( const int  x,
const int  y,
const int  z,
const int  t 
)
pure virtual

Check that pixel is a maxima of the Harris map.

Implemented in HarrisDetector< T, 2 >.

Member Data Documentation

template<class T >
aims::BucketMap<double> BaseHarrisDetector< T >::_corners
protected

Definition at line 145 of file harris.h.

template<class T >
double BaseHarrisDetector< T >::_epsilon
protected

Definition at line 128 of file harris.h.

template<class T >
double BaseHarrisDetector< T >::_f
protected

Definition at line 133 of file harris.h.

template<class T >
AimsData<double> BaseHarrisDetector< T >::_g
protected

Definition at line 139 of file harris.h.

template<class T >
AimsData<double> BaseHarrisDetector< T >::_hmap
protected

Definition at line 142 of file harris.h.

template<class T >
AimsData<T> BaseHarrisDetector< T >::_image
protected

Definition at line 138 of file harris.h.

template<class T >
double BaseHarrisDetector< T >::_k
protected

Definition at line 129 of file harris.h.

template<class T >
T BaseHarrisDetector< T >::_levels
protected

Definition at line 132 of file harris.h.

template<class T >
int BaseHarrisDetector< T >::_radius
protected

Definition at line 134 of file harris.h.

template<class T >
double BaseHarrisDetector< T >::_sigma
protected

Definition at line 130 of file harris.h.

template<class T >
double BaseHarrisDetector< T >::_sigma2
protected

Definition at line 130 of file harris.h.

template<class T >
double BaseHarrisDetector< T >::_u
protected

Definition at line 131 of file harris.h.

template<class T >
int BaseHarrisDetector< T >::_window
protected

Definition at line 135 of file harris.h.


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