Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxConvGauss3d.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxConvGauss3d (HxImageRep img, double sigmax, int orderDerivx, double accuracyx, double sigmay, int orderDerivy, double accuracyy, double sigmaz, int orderDerivz, double accuracyz)
 HxConvGauss3d. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxConvGauss3d HxImageRep    img,
double    sigmax,
int    orderDerivx,
double    accuracyx,
double    sigmay,
int    orderDerivy,
double    accuracyy,
double    sigmaz,
int    orderDerivz,
double    accuracyz
 

HxConvGauss3d.

Equivalent to (3x): img.generalizedConvolutionK1d( dim, gauss[dim], "mul", "addAssign", HxImageRep::ARITH_PREC)

where gaussx, gaussy, gaussz are the 1d double-precision Gaussian kernels based on the respective sets of sigma, orderDeriv, accuracy parameters.

Notice that the kernel is applied to every dimension of the image separately and that the result image has a double-precision pixel type.

00019 {
00020     HxImageRep gaussx, gaussy, gaussz;
00021 
00022     gaussx = HxMakeGaussian1d(sigmax, orderDerivx, accuracyx,
00023         img.dimensionSize(1));
00024     gaussy = HxMakeGaussian1d(sigmay, orderDerivy, accuracyy,
00025         img.dimensionSize(2));
00026     gaussz = HxMakeGaussian1d(sigmaz, orderDerivz, accuracyz,
00027         img.dimensionSize(3));
00028 
00029     HxImageRep res = img.generalizedConvolutionK1d(1, gaussx,
00030         "mul", "addAssign", HxImageRep::ARITH_PREC);
00031     res = res.generalizedConvolutionK1d(2, gaussy,
00032         "mul", "addAssign", HxImageRep::ARITH_PREC);
00033     return res.generalizedConvolutionK1d(3, gaussz,
00034         "mul", "addAssign", HxImageRep::ARITH_PREC);
00035 }


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