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