Description Usage Arguments Examples
Convolution of two images via FFT
1 | fft_convolve(im, filter, deconvolution = FALSE)
|
im, filter |
|
deconvolution |
logical indicating if the deconvolution should be performed |
1 2 3 4 5 6 7 8 9 10 | im <- lenna
filter <- imfill(9,9,val = 1)
blurred.im <- fft_convolve(im, filter)
deblurred.im <- fft_convolve(blurred.im, filter, deconvolution = TRUE)
par(mfrow = c(1,3), mar = c(0,0,1,0)+0.1)
plot(im, axes = FALSE, interp = FALSE, main = 'Original Lenna')
plot(blurred.im, axes = FALSE, interp = FALSE, main = 'Blurred Lenna')
plot(deblurred.im, axes = FALSE, interp = FALSE, main = 'deBlurred Lenna')
PSNR(im, blurred.im)
PSNR(im, deblurred.im)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.