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

Generalized convolution on 3D images, with a 1D kernel

The pattern loops over all pixels in the image and performs a generalized convolution in the neighbourhood of each pixel, processing each dimension independent of the others. The result is written to the corresponding position in the result image.

A generalized convolution is like a convolution but the multiplication and addition steps are replaced with functors. The functors are called gMul (for generalized multiplication) and gAdd (for generalized addition). Using multiplication and addition as parameters in a generalized convolution thus turns it into a "normal" convolution. However, the are other possibilities. For example, using addition and minimum results in an erosion.

Instantiations of the pattern are invoked via

Instantiation is done via the HxImgFtorGenConv3dK1d functor, with the following template parameters: Example(s): For further reference :
Return to patterns.


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