MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
mds::img::CHarris< I > Class Template Reference

Harris corner detector. More...

#include <mdsHarris.h>

Inheritance diagram for mds::img::CHarris< I >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { TEMPLATE_PARAMETER_IS_NOT_IMAGE = I::CLASS_IMAGE }
 Check that I is an image. More...
typedef CImageCornerDetector< I > base
 Image corner detector base.
typedef base::tImage tImage
 Image type.
typedef base::tPixel tPixel
 Image pixel type.

Public Member Functions

 CHarris (double dSigma, double dThreshold, double dKappa)
 Constructor.
double getKappa ()
 Returns width of the filter for getting corners.
double getThreshold ()
 Returns threshold of the non-maximal suppression algorithm.
bool operator() (const tImage &SrcImage, tImage &DstImage)
 Corner detection in a given image.
void setKappa (double dKappa)
 Sets width of the filter for gettig corners.
void setThreshold (double dThreshold)
 Sets threshold of the non-maximal suppression algorithm.
 ~CHarris ()
 Destructor.

Protected Member Functions

bool checkNeighbours (CFImage &Image, tSize x, tSize y, tFloatPixel T)
 Returns true if any neighbouring pixel has greater value than a given threshold.

Protected Attributes

double m_dKappa
double m_dThreshold
 Harris corner detector parameters.
CGaussFilter< CFImagem_GaussFilter
 Gaussian filter.
CSobelX< CFImagem_SobelX
CSobelY< CFImagem_SobelY

Detailed Description

template<class I>
class mds::img::CHarris< I >

Harris corner detector.


Member Typedef Documentation

template<class I >
typedef CImageCornerDetector<I> mds::img::CHarris< I >::base

Image corner detector base.

template<class I >
typedef base::tImage mds::img::CHarris< I >::tImage

Image type.

Reimplemented from mds::img::CImageCornerDetector< I >.

template<class I >
typedef base::tPixel mds::img::CHarris< I >::tPixel

Image pixel type.

Reimplemented from mds::img::CImageCornerDetector< I >.


Member Enumeration Documentation

template<class I >
anonymous enum [inherited]

Check that I is an image.

You will see name of this enum somewhere in compiler error message if the type I is not image.

Enumerator:
TEMPLATE_PARAMETER_IS_NOT_IMAGE 

Constructor & Destructor Documentation

template<class I >
mds::img::CHarris< I >::CHarris ( double  dSigma,
double  dThreshold,
double  dKappa 
)

Constructor.

  • Standard deviation of gaussian window used to estimate eigen values.
  • Cornerness threshold.
  • Tuneable parameter.
template<class I >
mds::img::CHarris< I >::~CHarris ( )

Destructor.


Member Function Documentation

template<class I >
bool CHarris::checkNeighbours ( CFImage Image,
tSize  x,
tSize  y,
tFloatPixel  T 
) [protected]

Returns true if any neighbouring pixel has greater value than a given threshold.

template<class I >
double mds::img::CHarris< I >::getKappa ( )

Returns width of the filter for getting corners.

template<class I >
double mds::img::CHarris< I >::getThreshold ( )

Returns threshold of the non-maximal suppression algorithm.

template<class I >
bool CHarris::operator() ( const tImage SrcImage,
tImage DstImage 
) [virtual]

Corner detection in a given image.

  • Magnitude image is produced.
  • Returns false on failure.

Implements mds::img::CImageCornerDetector< I >.

template<class I >
void CHarris::setKappa ( double  dKappa)

Sets width of the filter for gettig corners.

template<class I >
void CHarris::setThreshold ( double  dThreshold)

Sets threshold of the non-maximal suppression algorithm.


Member Data Documentation

template<class I >
double mds::img::CHarris< I >::m_dKappa [protected]
template<class I >
double mds::img::CHarris< I >::m_dThreshold [protected]

Harris corner detector parameters.

template<class I >
CGaussFilter<CFImage> mds::img::CHarris< I >::m_GaussFilter [protected]

Gaussian filter.

template<class I >
CSobelX<CFImage> mds::img::CHarris< I >::m_SobelX [protected]
template<class I >
CSobelY<CFImage> mds::img::CHarris< I >::m_SobelY [protected]

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