#include <canny.h>
Inheritance diagram for mimas::canny< T >:
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) |
Definition at line 25 of file canny.h.
mimas::canny< T >::canny | ( | ) | [inline] |
float mimas::canny< T >::norm | ( | float | x, | |
float | y | |||
) | [protected] |
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().
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:
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:
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:
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:
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:
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:
float mimas::canny< T >::distancePointToPoint | ( | int | ax, | |
int | ay, | |||
int | bx, | |||
int | by | |||
) | [protected] |
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:
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:
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:
void mimas::canny< T >::setCannyPixHighThresRatio | ( | double | tempval | ) |
double mimas::canny< T >::getCannyPixHighThresRatio | ( | void | ) |
void mimas::canny< T >::setCannyStdDev | ( | double | tempval | ) |
double mimas::canny< T >::getCannyStdDev | ( | void | ) |
void mimas::canny< T >::setCannyHighThres | ( | int | tempval | ) |
int mimas::canny< T >::getCannyHighThres | ( | void | ) |
void mimas::canny< T >::setCannyLowThres | ( | int | tempval | ) |
int mimas::canny< T >::getCannyLowThres | ( | void | ) |
void mimas::canny< T >::setCannyAutoThres | ( | bool | tempval | ) |
bool mimas::canny< T >::getCannyAutoThres | ( | void | ) |
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:
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:
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().
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().
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().
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().
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().