#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
| HxImageRep L_HXIMAGEREP | HxCannyThresholdRec (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 (implementation uses recursive filters for edge computation). 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 (implementation uses recursive filters for edge computation).
00015 {
00016 HxImageRep Ix = HxRecGauss(img, sigma, sigma, 1, 0, 3);
00017 HxImageRep Iy = HxRecGauss(img, sigma, sigma, 0, 1, 3);
00018 HxImageRep edges = HxMakeFrom2Images(Ix, Iy);
00019
00020 HxTagList tags;
00021 HxAddTag(tags, "level", HxValue(level));
00022 return edges.neighbourhoodOp("isMaxGradDir", tags);
00023 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001