Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxUniformNonSep.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxUniformNonSep (HxImageRep im, HxSizes sizes)
 Non separated version of the uniform filter for demo purposes. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxUniformNonSep HxImageRep    im,
HxSizes    sizes
 

Non separated version of the uniform filter for demo purposes.

00014 {
00015     // An image signature for a 2D image with 64-bit real valued scalar pixels
00016     HxImageSignature sig(im.dimensionality(), 1, REAL_VALUE, 64);
00017 
00018     // The pixel value of the uniform kernel
00019     double val = 1.0 / (sizes.x() * sizes.y() * sizes.z());
00020 
00021     // Now construct the kernel image
00022     HxImageRep kernel = HxMakeFromValue(sig, sizes, val);
00023 
00024     // and apply the operation
00025     return im.generalizedConvolution(kernel, "mul", "addAssign");
00026 }


Generated on Tue Feb 3 14:18:51 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001