Fast Matrix Column-wise/Row-wise Convolution
The matlab conv function doesn't provide a way to perform column-wise/row-wise convolution of matrices. Using a loop can be time-consuming. This new function performs this kind of convolution using only matrix operations and fft/ifft. The key to this implementation is the proper zero padding of input matrices. The zip file contains 2 .m files, the function and a demo.
This function computes C = fastConv(A,B,dim), where the i-th column/row of C is the convolution of the i-th column/row of A and the i-th cloumn/row of B.
Cite As
Zhen James Xiang (2024). Fast Matrix Column-wise/Row-wise Convolution (https://www.mathworks.com/matlabcentral/fileexchange/29398-fast-matrix-column-wise-row-wise-convolution), 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 > Morphological Operations >
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.