資源簡介
李春明提出的無需水平集初始化的思想是圖像分割的一個重大突破,重慶大學的何傳江教授對該算法進行了改進,里面是我的實現算法
代碼片段和文件信息
clear?all;
close?all;
Img?=?imread(‘I11_256.bmp‘);??%?The?same?cell?image?in?the?paper?is?used?here
%Img?=?imread(‘twocells.bmp‘);?
%Img?=?imread(‘rice.bmp‘);
Img=double(Img(::1));
sigma=2;%?scale?parameter?in?Gaussian?kernel?for?smoothing.
G=fspecial(‘gaussian‘15sigma);
Img_smooth=conv2(ImgG‘same‘);??%?smooth?image?by?Gaussiin?convolution
[IxIy]=gradient(Img_smooth);
%f=Ix.^2+Iy.^2;
%?g=1./(1+f);??%?edge?indicator?function.
f=sqrt(Ix.^2+Iy.^2);
m=4;
f1=f/m;
f1=-f1;
g=exp(f1);%收斂停止函數
epsilon=1.5;?%?the?papramater?in?the?definition?of?smoothed?Dirac?function
timestep=5;??%?time?step
mu=0.2/timestep;??%?coefficient?of?the?internal?(penalizing)?energy?term?P(\phi)
??????????%?Note:?the?product?timestep*mu?must?be?less?than?0.25?for?stability!
lambda=8;?%?co
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????572402??2011-04-01?10:20??距離保持水平集\20081207.pdf
?????文件??????66614??2003-11-08?00:13??距離保持水平集\curve_256.bmp
?????文件???????2222??2003-11-07?01:26??距離保持水平集\dyCurve.bmp
?????文件??????66614??2003-05-05?23:22??距離保持水平集\I11_256.bmp
?????文件??????17462??2003-11-06?01:19??距離保持水平集\I24.bmp
?????文件??????17462??2003-11-08?01:35??距離保持水平集\pentagram.bmp
?????文件??????17462??2003-05-05?23:22??距離保持水平集\rice.bmp
?????文件???????2489??2011-04-05?11:09??距離保持水平集\sjx_demo.asv
?????文件???????2491??2011-04-05?11:22??距離保持水平集\sjx_demo.m
?????文件???????1455??2011-04-05?10:45??距離保持水平集\sjx_EVOLUTION.m
????..A.SH.?????33792??2011-04-11?22:51??距離保持水平集\Thumbs.db
?????文件??????16434??2004-07-23?19:36??距離保持水平集\twocells.bmp
?????文件???????8134??2004-07-05?18:59??距離保持水平集\twoObj.bmp
?????目錄??????????0??2011-04-11?22:51??距離保持水平集
-----------?---------??----------?-----??----
???????????????825033????????????????????14
評論
共有 條評論