Sliding a 3X3 window over an image

2 views (last 30 days)
Avinash Bhatt
Avinash Bhatt on 15 May 2019
Answered: KSSV on 15 May 2019
I am using kriging interpolation algorithm for the removal of high density salt and pepper noise in images.
For this I am using window of different size to slide over an image for uncorrupted image pixels. Initially I created a 3X3 window using
ones(3,3)
I am unable to convolve this 3X3 window to a image('cameraman.tif')
Please provide matlab code for this.

Accepted Answer

KSSV
KSSV on 15 May 2019
A = conv2(A,ones(3),'same');

More Answers (0)

Community Treasure Hunt

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

Start Hunting!