2-dimensional linear convolution by FFT
CONVOL2FFT is a matlab function that returns the 2-dimensional linear convolution between a given image and a 2-dimensional impulse response of a filter. The filter must be a (2-dimensional) matrix. The image can be a matrix for a grayscale image and a 3D array for an RGB image. Maybe It is faster than IMFILTER, when size(h) > around 128. Typical syntaxes are as follows.
(1) x = convol2fft(x, h); where x * h is returned.
(2) [H,mns] = convol2fft(size(x),h); where H = DFT(h) and mns are returned.
(3) x = convol2fft(x,H,mns); where x * h is returned by using the given H = DFT(h) and mns.
Cite As
Hisa (2023). 2-dimensional linear convolution by FFT (https://www.mathworks.com/matlabcentral/fileexchange/54476-2-dimensional-linear-convolution-by-fft), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Filtering >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |