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

Zero crossings of the LoG filter. More...

#include <mdsZeroCrossings.h>

Inheritance diagram for mds::img::CZeroCrossDetector< 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 CImageEdgeDetector< I > base
 Image edge detector base.
typedef base::tImage tImage
 Image type.
typedef base::tPixel tPixel
 Image pixel type.

Public Member Functions

 CZeroCrossDetector (double dSigma, double dThreshold)
 Default constructor.
double getSigma () const
 Returns LoG filter standard deviation.
double getThreshold ()
 Return threshold for the gradient magnitude.
bool operator() (const tImage &SrcImage, tImage &DstImage)
 Edge detection in a given image.
void setSigma (double dSigma)
 Sets the LoG filter standard deviation.
void setThreshold (double dThreshold)
 Returns gradient magnitude threshold.
 ~CZeroCrossDetector ()
 Destructor.

Protected Member Functions

double computeGradient (const tImage &Image, tSize x, tSize y)
 Computes the gradient magnitude.
bool isEdge (const tImage &Image, tSize x, tSize y)
 Checks if the pixel is on edge.

Protected Attributes

double m_dThreshold
 Magnitude threshold.
CLoGFilter< tImage,
CShiftZero2Gray
m_Filter
 LoG filter.

Detailed Description

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

Zero crossings of the LoG filter.


Member Typedef Documentation

template<class I >
typedef CImageEdgeDetector<I> mds::img::CZeroCrossDetector< I >::base

Image edge detector base.

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

Image type.

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

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

Image pixel type.

Reimplemented from mds::img::CImageEdgeDetector< 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::CZeroCrossDetector< I >::CZeroCrossDetector ( double  dSigma,
double  dThreshold 
)

Default constructor.

  • Standard deviation ("sigma" parameter) of the LoG filter.
  • Threshold for the gradient magnitude.
template<class I >
mds::img::CZeroCrossDetector< I >::~CZeroCrossDetector ( )

Destructor.


Member Function Documentation

template<class I >
double CZeroCrossDetector::computeGradient ( const tImage Image,
tSize  x,
tSize  y 
) [protected]

Computes the gradient magnitude.

template<class I >
double mds::img::CZeroCrossDetector< I >::getSigma ( ) const

Returns LoG filter standard deviation.

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

Return threshold for the gradient magnitude.

template<class I >
bool CZeroCrossDetector::isEdge ( const tImage Image,
tSize  x,
tSize  y 
) [protected]

Checks if the pixel is on edge.

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

Edge detection in a given image.

  • Returns false on failure

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

template<class I >
void mds::img::CZeroCrossDetector< I >::setSigma ( double  dSigma)

Sets the LoG filter standard deviation.

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

Returns gradient magnitude threshold.


Member Data Documentation

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

Magnitude threshold.

template<class I >
CLoGFilter<tImage, CShiftZero2Gray> mds::img::CZeroCrossDetector< I >::m_Filter [protected]

LoG filter.


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