mimas::canny< T > Class Template Reference

#include <canny.h>

Inheritance diagram for mimas::canny< T >:

Inheritance graph
[legend]
Collaboration diagram for mimas::canny< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void setCannyPixHighThresRatio (double tempval)
double getCannyPixHighThresRatio (void)
void setCannyStdDev (double tempval)
double getCannyStdDev (void)
void setCannyHighThres (int tempval)
int getCannyHighThres (void)
void setCannyLowThres (int tempval)
int getCannyLowThres (void)
void setCannyAutoThres (bool tempval)
bool getCannyAutoThres (void)
void getEdges (image< T > &inputImage, image< T > &outimage)
void getEdges (image< T > &image)
 canny ()

Public Attributes

float ratio
float sd
int highthres
int lowthres
bool autothreshold

Protected Member Functions

float norm (float x, float y)
float gauss (float x, float sigma)
float dGauss (float x, float sigma)
float meanGauss (float x, float sigma)
void separable_convolution (const image< int > &im, const std::vector< float > &gau, image< float > &smx, image< float > &smy)
void dxy_separable_convolution (const std::vector< float > &dgau, const image< float > &smx, const image< float > &smy, image< float > &dx, image< float > &dy)
void nonmax_suppress (const image< float > &dx, const image< float > &dy, image< float > &mag)
void estimate_thresh (const image< float > &mag, int fringe)
float distancePointToPoint (int ax, int ay, int bx, int by)
float distancePointToLine (int ax, int ay, int bx, int by, int px, int py)
void hysteresis (const image< float > &mag, image< int > &im, int fringe)
int trace (const image< float > &mag, image< int > &im, int i, int j)

Detailed Description

template<typename T>
class mimas::canny< T >

Definition at line 25 of file canny.h.


Constructor & Destructor Documentation

template<typename T>
mimas::canny< T >::canny (  )  [inline]

Definition at line 78 of file canny.h.


Member Function Documentation

template<typename T>
float mimas::canny< T >::norm ( float  x,
float  y 
) [protected]

Definition at line 151 of file canny.h.

Referenced by mimas::canny< T >::nonmax_suppress().

template<typename T>
float mimas::canny< T >::gauss ( float  x,
float  sigma 
) [protected]

Definition at line 213 of file canny.h.

Referenced by mimas::canny< T >::dGauss(), and mimas::canny< T >::meanGauss().

template<typename T>
float mimas::canny< T >::dGauss ( float  x,
float  sigma 
) [protected]

Definition at line 234 of file canny.h.

References mimas::canny< T >::gauss().

Referenced by mimas::canny< T >::getEdges().

Here is the call graph for this function:

template<typename T>
float mimas::canny< T >::meanGauss ( float  x,
float  sigma 
) [protected]

Definition at line 223 of file canny.h.

References mimas::canny< T >::gauss().

Referenced by mimas::canny< T >::getEdges().

Here is the call graph for this function:

template<typename T>
void mimas::canny< T >::separable_convolution ( const image< int > &  im,
const std::vector< float > &  gau,
image< float > &  smx,
image< float > &  smy 
) [protected]

Definition at line 334 of file canny.h.

References mimas::const_image_ref< T, TPtr >::getHeight(), mimas::const_image_ref< T, TPtr >::getWidth(), mimas::image< T >::init(), and mimas::image_ref< T >::pixel().

Referenced by mimas::canny< T >::getEdges().

Here is the call graph for this function:

template<typename T>
void mimas::canny< T >::dxy_separable_convolution ( const std::vector< float > &  dgau,
const image< float > &  smx,
const image< float > &  smy,
image< float > &  dx,
image< float > &  dy 
) [protected]

Definition at line 366 of file canny.h.

References mimas::const_image_ref< T, T * >::getHeight(), mimas::const_image_ref< T, T * >::getWidth(), mimas::image< T >::init(), and mimas::image_ref< T >::pixel().

Referenced by mimas::canny< T >::getEdges().

Here is the call graph for this function:

template<typename T>
void mimas::canny< T >::nonmax_suppress ( const image< float > &  dx,
const image< float > &  dy,
image< float > &  mag 
) [protected]

Definition at line 406 of file canny.h.

References mimas::const_image_ref< T, T * >::getHeight(), mimas::const_image_ref< T, T * >::getWidth(), mimas::canny< T >::lowthres, MAG_SCALE, mimas::canny< T >::norm(), and mimas::image_ref< T >::pixel().

Referenced by mimas::canny< T >::getEdges().

Here is the call graph for this function:

template<typename T>
void mimas::canny< T >::estimate_thresh ( const image< float > &  mag,
int  fringe 
) [protected]

Definition at line 496 of file canny.h.

References mimas::const_image_ref< T, T * >::getHeight(), mimas::const_image_ref< T, T * >::getWidth(), mimas::canny< T >::highthres, mimas::canny< T >::lowthres, MAG_SCALE, and mimas::image_ref< T >::pixel().

Referenced by mimas::canny< T >::hysteresis().

Here is the call graph for this function:

template<typename T>
float mimas::canny< T >::distancePointToPoint ( int  ax,
int  ay,
int  bx,
int  by 
) [protected]

Definition at line 275 of file canny.h.

Referenced by mimas::canny< T >::distancePointToLine().

template<typename T>
float mimas::canny< T >::distancePointToLine ( int  ax,
int  ay,
int  bx,
int  by,
int  px,
int  py 
) [protected]

Definition at line 282 of file canny.h.

References mimas::canny< T >::distancePointToPoint().

Here is the call graph for this function:

template<typename T>
void mimas::canny< T >::hysteresis ( const image< float > &  mag,
image< int > &  im,
int  fringe 
) [protected]

Definition at line 246 of file canny.h.

References mimas::canny< T >::autothreshold, mimas::canny< T >::estimate_thresh(), mimas::const_image_ref< T, TPtr >::getHeight(), mimas::const_image_ref< T, TPtr >::getWidth(), mimas::canny< T >::highthres, mimas::canny< T >::lowthres, MAG_SCALE, mimas::image_ref< T >::pixel(), and mimas::canny< T >::trace().

Referenced by mimas::canny< T >::getEdges().

Here is the call graph for this function:

template<typename T>
int mimas::canny< T >::trace ( const image< float > &  mag,
image< int > &  im,
int  i,
int  j 
) [protected]

Definition at line 296 of file canny.h.

References mimas::const_image_ref< T, T * >::getHeight(), mimas::const_image_ref< T, T * >::getWidth(), mimas::canny< T >::lowthres, MAG_SCALE, and mimas::image_ref< T >::pixel().

Referenced by mimas::canny< T >::hysteresis().

Here is the call graph for this function:

template<typename T>
void mimas::canny< T >::setCannyPixHighThresRatio ( double  tempval  ) 

Definition at line 90 of file canny.h.

References mimas::canny< T >::ratio.

template<typename T>
double mimas::canny< T >::getCannyPixHighThresRatio ( void   ) 

Definition at line 96 of file canny.h.

References mimas::canny< T >::ratio.

template<typename T>
void mimas::canny< T >::setCannyStdDev ( double  tempval  ) 

Definition at line 102 of file canny.h.

References mimas::canny< T >::sd.

template<typename T>
double mimas::canny< T >::getCannyStdDev ( void   ) 

Definition at line 108 of file canny.h.

References mimas::canny< T >::sd.

template<typename T>
void mimas::canny< T >::setCannyHighThres ( int  tempval  ) 

Definition at line 114 of file canny.h.

References mimas::canny< T >::highthres.

template<typename T>
int mimas::canny< T >::getCannyHighThres ( void   ) 

Definition at line 120 of file canny.h.

References mimas::canny< T >::highthres.

template<typename T>
void mimas::canny< T >::setCannyLowThres ( int  tempval  ) 

Definition at line 126 of file canny.h.

References mimas::canny< T >::lowthres.

template<typename T>
int mimas::canny< T >::getCannyLowThres ( void   ) 

Definition at line 132 of file canny.h.

References mimas::canny< T >::lowthres.

template<typename T>
void mimas::canny< T >::setCannyAutoThres ( bool  tempval  ) 

Definition at line 139 of file canny.h.

References mimas::canny< T >::autothreshold.

template<typename T>
bool mimas::canny< T >::getCannyAutoThres ( void   ) 

Definition at line 145 of file canny.h.

References mimas::canny< T >::autothreshold.

template<typename T>
void mimas::canny< T >::getEdges ( image< T > &  inputImage,
image< T > &  outimage 
)

Definition at line 157 of file canny.h.

References mimas::canny< T >::dGauss(), mimas::drawLine(), mimas::canny< T >::dxy_separable_convolution(), mimas::const_image_ref< T, T * >::getHeight(), mimas::const_image_ref< T, TPtr >::getHeight(), mimas::const_image_ref< T, T * >::getWidth(), mimas::const_image_ref< T, TPtr >::getWidth(), mimas::canny< T >::hysteresis(), mimas::image< T >::init(), mimas::canny< T >::meanGauss(), mimas::canny< T >::nonmax_suppress(), mimas::image_ref< T >::pixel(), mimas::canny< T >::sd, and mimas::canny< T >::separable_convolution().

Referenced by mimas::canny< T >::getEdges().

Here is the call graph for this function:

template<typename T>
void mimas::canny< T >::getEdges ( image< T > &  image  ) 

Definition at line 206 of file canny.h.

References mimas::canny< T >::getEdges().

Here is the call graph for this function:


Member Data Documentation

template<typename T>
float mimas::canny< T >::ratio

Definition at line 59 of file canny.h.

Referenced by mimas::canny< int >::canny(), mimas::canny< T >::getCannyPixHighThresRatio(), and mimas::canny< T >::setCannyPixHighThresRatio().

template<typename T>
float mimas::canny< T >::sd

Definition at line 60 of file canny.h.

Referenced by mimas::canny< int >::canny(), mimas::canny< T >::getCannyStdDev(), mimas::canny< T >::getEdges(), and mimas::canny< T >::setCannyStdDev().

template<typename T>
int mimas::canny< T >::highthres

Definition at line 61 of file canny.h.

Referenced by mimas::canny< int >::canny(), mimas::canny< T >::estimate_thresh(), mimas::canny< T >::getCannyHighThres(), mimas::canny< T >::hysteresis(), and mimas::canny< T >::setCannyHighThres().

template<typename T>
int mimas::canny< T >::lowthres

Definition at line 61 of file canny.h.

Referenced by mimas::canny< int >::canny(), mimas::canny< T >::estimate_thresh(), mimas::canny< T >::getCannyLowThres(), mimas::canny< T >::hysteresis(), mimas::canny< T >::nonmax_suppress(), mimas::canny< T >::setCannyLowThres(), and mimas::canny< T >::trace().

template<typename T>
bool mimas::canny< T >::autothreshold

Definition at line 62 of file canny.h.

Referenced by mimas::canny< int >::canny(), mimas::canny< T >::getCannyAutoThres(), mimas::canny< T >::hysteresis(), and mimas::canny< T >::setCannyAutoThres().


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:25 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...