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