eeconv2(kernel,targ​etMat)

Performs 2D convolution on an image using extended edge padding
26 Downloads
Updated 3 May 2017

View License

result = eeconv2(kernel,targetMat)

I wanted a program to have a kernel (kernel) convoluted with an image (targetMat) using edge extension rather than the MATLAB default padding with zeros; the resulting matrix (result) is the same size as the original image. This program does not require any toolkits.

It assumes:
-kernel is odd (e.g., 3x3, 5x7) so that there is a center pixel
- minimum kernel is 3x3
- maximum kernel is the size of the target matrix

This is my first such program; let me know if it is useful and if you have issues so that I can address them. Thank you!

Cite As

Jason Moscatello (2025). eeconv2(kernel,targetMat) (https://se.mathworks.com/matlabcentral/fileexchange/62776-eeconv2-kernel-targetmat), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0