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?

 Risposta accettata

Matt J
Matt J il 7 Nov 2013
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 Commenti

sheno39
sheno39 il 7 Nov 2013
Modificato: sheno39 il 7 Nov 2013
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?
Matt J
Matt J il 7 Nov 2013
Yes, using the methods I mentioned. Or IMRESIZE.
sheno39
sheno39 il 7 Nov 2013
Thank You.

Accedi per commentare.

Più risposte (0)

Richiesto:

il 7 Nov 2013

Commentato:

il 7 Nov 2013

Community Treasure Hunt

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

Start Hunting!

Translated by