資源簡(jiǎn)介
圖像分割的經(jīng)典算法,LBF算法(局部二元擬合),matlab實(shí)現(xiàn)
代碼片段和文件信息
%?This?Matlab?file?demomstrates?a?level?set?algorithm?based?on?Chunming?Li?et?al‘s?paper:
%?“Implicit?Active?Contours?Driven?By?Local?Binary?Fitting?Energy“?in?Proceedings?of?CVPR‘07
clc;clear?all;close?all;
c0?=2;
imgID=2;
Img=imread(‘vessel3.bmp‘);
%Img=imread(‘vessel2.bmp‘);??%?uncommont?this?line?to?use?ther?other?vessel?image
I=Img(::1);
Img=double(Img);
switch?imgID
?????case?1
???????phi=?ones(size(Img(::1))).*c0;
???????a=43;b=51;c=20;d=28;
???????phi(a:bc:d)?=?-c0;
???????figure;
???????imshow(I);colormap;
???????hold?on;
???????plotLevelSet(phi?0?‘g‘);
???????hold?off;
????case?2
???????[mn]=size(Img(::1));
???????a=m/2;?b=n/2;r=5;
???????phi=?ones(mn).*c0;
???????phi(a-r:a+rb-r:b+r)?=?-c0;
???????imshow(I);colormap;
???????hold?on;
???????plotLevelSet(phi?0?‘r‘);
???????hold?off;
????case?3
???????figure;imagesc(Img?[0?255]);colormap(gray);hold?on;?axis?off;axis?equal;
???????text(66‘Left?click?to?get?points?right?clic
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-03-17?15:50??LBF(Matlab)\
?????文件????????2117??2011-03-17?15:49??LBF(Matlab)\DemoLBF.m
?????文件????????1689??2011-03-17?15:49??LBF(Matlab)\EVOL_LBF.m
?????文件???????30654??2008-12-17?10:21??LBF(Matlab)\I5.bmp
?????文件???????20338??2007-08-08?23:31??LBF(Matlab)\mri_nonuniform.bmp
?????文件????????7078??2007-08-16?17:13??LBF(Matlab)\noisyNonUniform.bmp
?????文件?????????337??2005-10-08?14:18??LBF(Matlab)\plotLevelSet.m
?????文件???????13398??2007-08-16?17:46??LBF(Matlab)\vessel2.bmp
?????文件???????14702??2007-08-16?17:03??LBF(Matlab)\vessel3.bmp
?????文件????????1162??2008-04-02?11:29??LBF(Matlab)\灰度不均.jpg
評(píng)論
共有 條評(píng)論