Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxCannyEdgeMap.h File Reference

More...

#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...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxCannyEdgeMap HxImageRep    img,
double    sigma
 

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 }


Generated on Tue Jan 8 13:59:19 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001