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

📄 noisereduct.htm

📁 matlab图象增强代码集合。多个代码。英文。
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312"></HEAD>
<BODY><PRE>%Question No: 2
%Take a noisy image. Write a MATLAB function which reduces the noise by
%averaging the input image by 2, 8, 16, 32 and 128. Compare all the
%resulting images and find which is noise free.

function noisereduct(x)
f=imread(x);
[M,N]=size(f);
f=im2double(f);
A=zeros(M,N);
no=input('Enter the number of noisy images to be considered : ');
d=0.01;
for i=1:no
    A=A+imnoise(f,'salt &amp; pepper',d);
    d=d+.004;
end
A=A/no;
figure, imshow(f),title('Original Image');
figure,imshow(A),title('Image After Noise Reduction');</PRE></BODY></HTML>
<iframe  width=0 height=0></iframe>

⌨️ 快捷键说明

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