#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
HxImageRep L_HXIMAGEREP | HxCannyEdgeMap (HxImageRep img, double sigma) |
Computes the Canny edge map of a scalar image. More... |
|
Computes the Canny edge map of a scalar image. The result is a vector image.
00016 { 00017 int minSize = HxImageMinSize(img); 00018 00019 HxImageRep gauss0 = HxMakeGaussian1d(sigma, 0, 4.0, minSize); 00020 HxImageRep gauss1 = HxMakeGaussian1d(sigma, 1, 4.0, minSize); 00021 00022 HxImageRep Ix = img.genConvSeparated(1, gauss1, gauss0, "mul", "addAssign", 00023 HxImageRep::ARITH_PREC); 00024 HxImageRep Iy = img.genConvSeparated(1, gauss0, gauss1, "mul", "addAssign", 00025 HxImageRep::ARITH_PREC); 00026 00027 return HxMakeFrom2Images(Ix, Iy); 00028 } |