3x3 pixel Gaussian filter with σ=1 pixel after using blockproc?
Show older comments
How do you run a 3x3 pixel Gaussian filter with a σ=1 on the individual blocks after splitting an image with blockproc function in Matlab?
Used blockproc to divide the image into 50x50 pixel blocks but don't know how to run a filter on each block individually.

This was the line of code that I used :
ffts = blockproc(I, [50 50], @(block_struct) fftshift(fft2(block_struct.data)));
Answers (1)
Image Analyst
on 13 Jun 2022
Edited: Image Analyst
on 13 Jun 2022
0 votes
I also recommend you use odd numbered window sizes. With even numbered ones you'll have a half pixel shift in the output.
Categories
Find more on Neighborhood and Block Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!