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

 채택된 답변

Matt J
Matt J 2013년 11월 7일

0 개 추천

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

sheno39
sheno39 2013년 11월 7일
편집: sheno39 2013년 11월 7일
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 2013년 11월 7일
Yes, using the methods I mentioned. Or IMRESIZE.
sheno39
sheno39 2013년 11월 7일
Thank You.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

태그

질문:

2013년 11월 7일

댓글:

2013년 11월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by