downsampling the filtered image

i have iteratively filtered the image using low pass filtering. now i need to downsample the filtered images. how to implement?

 Accepted Answer

By indexing, perhaps, e.g.,
x=1:10;
xdownsampled=x(1:2:end);
Or, if downsampling at non-integer locations, by interpolation. See griddedInterpolant().

3 Comments

if true
close all;
clear all;
clc;
I = imread('peppers.png');
figure,imshow(I),title('Original Image');
M=[1 1 1;1 1 1;1 1 1]./9;
M=ones(5,5)./25;
h = fspecial('gaussian',[5 5]);
J=imfilter(I,h);
K=imfilter(J,M);
figure,imshow(K),title('Low pass filtered image1');
L=imfilter(K,M);
figure,imshow(L),title('Low pass filtered image2');
M=imfilter(L,M);
figure,imshow(M),title('Low pass filtered image3');
end
i need to reduce the size of the image after each filteration? Is it possible Sir?
Yes, using the methods I mentioned. Or IMRESIZE.
Thank You.

Sign in to comment.

More Answers (0)

Asked:

on 7 Nov 2013

Commented:

on 7 Nov 2013

Community Treasure Hunt

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

Start Hunting!