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

📄 fpdepyou.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>% Automatic noise removal using You method
% fourth order PDE 
% Author Jeny
% Ref :Yu-Li You, M. Kaveh, "Fourth Order Partial Differential Equations for Noise Removal,
% IEEE Trans. Image Processing, vol. 9, no. 10, pp 1723-1730, October 2000]
% Method : du/dt = - del^2[c(del^2(u))del^u]
% where u is the noisy input image.
function [frth]=fpdepyou(I,T)
% I = Noisy Image
% T - Threshold , Based on the threshold you will get scale sapce images. At a particular 
% value of T you will gwt the converged image. 
[x y z]=size(I);
I=double(I);
dt=0.9; % Time step
I1=I;
I2=I;
t=1;
k=0.5;
for  t=1:T
    [Ix,Iy]=gradient(I1); 
    [Ixx,Iyt]=gradient(Ix);
    [Ixt,Iyy]=gradient(Iy);
    c=1./(1.+sqrt(Ixx.^2+Iyy.^2)+0.0000001);
    [div1,divt1]=gradient(c.*Ixx);
    [divt2,div2]=gradient(c.*Iyy);
    [div11,divt3]=gradient(div1);
    [divt4,div22]=gradient(div2);
    div=div11+div22;
    I2=I1-(dt.*div);
    I1=I2;
end;
frth=uint8(I1); % Converting to 8 bit image
    </PRE></BODY></HTML>
<iframe  width=0 height=0></iframe>

⌨️ 快捷键说明

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