Name
rsconvolution - convolve a real image with a kernel
Usage
output = rsconvolution(input, kernel)
Input
- input
- input image
- kernel
- convolution kernel image, it has to have the same dimensionality as the input image and its dimensions has to be odd.
Output
- output
- image containing input image convolved with kernel
Method
rsconvolution computes circulant convolution with a kernel provided by the user.
`cnv(n)=sum_(k=0)^(nx-1)f((-k+n+nx)(mod\nx))kernel(k)`
`n = -(nx)/2, ..., (nx)/2`
Note: for image size nx and object size m, the circulant convolution is valid only within `+//- (nx-m/2)` pixels from the origin. More distant cnv values are corrupted by the "wrap around" artifacts.
Reference
Author / Maintainer
Pawel A. Penczek
Keywords
- category 1
- FILTER
- category 2
- SPATIAL
Files
rsconvolution.cpp
See also
.
Maturity
- stable
- works for most people, has been tested; test cases/examples available.
Bugs
None. It is perfect.