#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
HxImageRep L_HXIMAGEREP | HxCannyThreshold (HxImageRep img, double sigma, double level) |
Computes the Canny edge map of a scalar image, performs non-maxima suppression, and tresholds the norm of the resulting vector field at the given level. More... |
|
Computes the Canny edge map of a scalar image, performs non-maxima suppression, and tresholds the norm of the resulting vector field at the given level.
00017 { 00018 HxImageRep edges = HxCannyEdgeMap(img, sigma); 00019 HxImageRep nonmax = HxNonMaxSuppressionGradDir(edges); 00020 return HxThreshold(HxNorm2Sqr(nonmax), HxValue(level * level)); 00021 } |