[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

Kernel Argument Object Factories |

These factory functions allow to create argument objects for 1D and 2D convolution kernel analogously to Argument Object Factories for images.

## kernel1d()

Pass a vigra::Kernel1D to a 1D or separable convolution algorithm.

These factories can be used to create argument objects when we are given instances or subclasses of vigra::Kernel1D (analogous to the Argument Object Factories for images). These factory functions access `kernel.center()`, `kernel.left()`, `kernel.right()`, `kernel.accessor()`, and `kernel.borderTreatment()` to obtain the necessary information. The following factory functions are provided:

`vigra::Kernel1D<SomeType> kernel;`
`kernel1d(kernel)` | create argument object from information provided by kernel
`kernel1d(kernel, vigra::BORDER_TREATMENT_CLIP)` | create argument object from information provided by kernel, but use given border treatment mode
`kernel1d(kerneliterator, kernelaccessor,` `kernelleft, kernelright,` `vigra::BORDER_TREATMENT_CLIP)` | create argument object from explicitly given iterator (pointing to the center of th kernel), accessor, left and right boundaries, and border treatment mode

For usage examples see one-dimensional and separable convolution functions.

## kernel2d()

Pass a vigra::Kernel2D to a 2D (non-separable) convolution algorithm.

These factories can be used to create argument objects when we are given instances or subclasses of vigra::Kernel2D (analogous to the Argument Object Factories for images). These factory functions access `kernel.center()`, `kernel.upperLeft()`, `kernel.lowerRight()`, `kernel.accessor()`, and `kernel.borderTreatment()` to obtain the necessary information. The following factory functions are provided:

`vigra::Kernel2D<SomeType> kernel;`
`kernel2d(kernel)` | create argument object from information provided by kernel
`kernel2d(kernel, vigra::BORDER_TREATMENT_CLIP)` | create argument object from information provided by kernel, but use given border treatment mode
`kernel2d(kerneliterator, kernelaccessor,` `upperleft, lowerright,` `vigra::BORDER_TREATMENT_CLIP)` | create argument object from explicitly given iterator (pointing to the center of th kernel), accessor, upper left and lower right corners, and border treatment mode

For usage examples see two-dimensional convolution functions.

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany | html generated using doxygen and Python vigra 1.9.0 (Tue Nov 6 2012)