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

 Akzeptierte Antwort

Matt J
Matt J am 7 Nov. 2013

0 Stimmen

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 Kommentare

sheno39
sheno39 am 7 Nov. 2013
Bearbeitet: sheno39 am 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 am 7 Nov. 2013
Yes, using the methods I mentioned. Or IMRESIZE.
sheno39
sheno39 am 7 Nov. 2013
Thank You.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Gefragt:

am 7 Nov. 2013

Kommentiert:

am 7 Nov. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by