⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yxm1031001755-1.m

📁 次程序为本人编写的关于数字图像处理方面的程序
💻 M
字号:
clear
clc
close all
a=imread('d:\于秀明1031001755\Miss.bmp');
subplot(231);
imshow(a);
title('256*256');
%图象128*128
a=double(a);
 for i=1:128;
   for j=1:128;
        b(i,j)=a(2*i,2*j);
    end
end
subplot(232);
imshow(b,[]);
title('128*128');
%图象64*64
for i=1:64;
    for j=1:64;
        c(i,j)=a(4*i,4*j);
    end
end
subplot(233);
imshow(c,[]);
title('64*64');
%图象32*32
for i=1:32;
    for j=1:32;
        d(i,j)=a(8*i,8*j);
    end
end
subplot(234);
imshow(d,[]);
title('32*32');
%图象16*16
for i=1:16;
    for j=1:16;
        e(i,j)=a(16*i,16*j);
    end
end
subplot(235);
imshow(e,[]);
title('16*16');
%图象8*8
for i=1:8;
    for j=1:8;
        f(i,j)=a(32*i,32*j);
    end
end
subplot(236);
imshow(f,[]);
title('8*8');


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -