資源簡介
用于數字摳圖的源代碼,外國人寫的,非常好用
代碼片段和文件信息
function?[alpha_compseig_vectorseig_values]?=?calcMattingComponents(ILbnamesave_partial_results...
????????????????????????????????????????????????nclusteigs_nummaxItrexp_a)
if?(~exist(‘maxItr‘‘var‘)||?isempty(maxItr))
??maxItr=20;
end
if?(~exist(‘exp_a‘‘var‘))
????exp_a=0.9;
end?????????????????????????????????????????
?????????????????????????????????????????
[nmc]=size(I);
N=n*m;
OPT.disp?=?0;
[u00d00]=eigs(Leigs_num+1‘sm‘?OPT);
disp(‘done?computing?eigen?vectors‘);
if?(d00(11)?>?d00(endend))
????d00=d00(end:-1:1end:-1:1);?u00=u00(:end:-1:1);
end
u=u00;?d=d00;
%?we?use?only?20?first?eigen?vectors?for?the?kmeans?initialization.
s_eigs_num?=?20;
eigs_weights?=??diag(1./diag(d00(2:s_eigs_num+12:s_eigs_num+1).^0.5));
eigss=u00(:2:s_eigs_num+1)*eigs_weights;
[tkmind
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2009-12-31?15:31??spectralMattingCode
?????文件???????1812??2007-06-11?02:26??spectralMattingCode\calcMattingComponents.m
?????文件????????106??2007-05-27?16:37??spectralMattingCode\compile_mincut.m
?????文件????????300??2007-04-29?22:21??spectralMattingCode\decideFB.m
?????文件????????318??2007-05-22?20:13??spectralMattingCode\downSmpIm.m
?????文件?????137058??2007-06-01?20:13??spectralMattingCode\face.tif
?????文件??????11592??2009-05-26?10:33??spectralMattingCode\face_alpha.tif
?????文件???????2625??2007-05-17?19:47??spectralMattingCode\fastKmeans.m
?????文件????????594??2007-05-03?22:16??spectralMattingCode\finalEnhancment.m
?????文件????????296??2007-06-06?21:46??spectralMattingCode\flat3DArray.m
?????文件???????1770??2007-04-29?21:54??spectralMattingCode\getLaplacian1.m
?????文件????????169??2007-04-29?22:22??spectralMattingCode\ind2bin.m
?????文件???????1065??2007-06-06?22:22??spectralMattingCode\iterateProjComps.m
?????文件?????134566??2007-06-01?20:19??spectralMattingCode\kid.tif
?????文件??????14678??2007-06-11?02:25??spectralMattingCode\kid_alpha.tif
?????文件?????126890??2007-06-01?20:19??spectralMattingCode\kid_scribbles.tif
?????文件?????458116??2007-06-01?20:14??spectralMattingCode\kim.tif
?????文件??????26970??2007-06-07?15:59??spectralMattingCode\kim_alpha.tif
?????文件?????456554??2007-06-01?20:15??spectralMattingCode\kim_scribbles.tif
?????文件??????24576??2007-06-07?15:42??spectralMattingCode\maxflow.dll
?????文件??????28790??2007-06-06?23:07??spectralMattingCode\maxflow.mexglx
?????文件????????367??2007-06-11?02:24??spectralMattingCode\minCutPull.m
?????文件???????4574??2007-05-27?16:38??spectralMattingCode\mymaxflow.cpp
?????文件???28072040??2007-06-07?15:49??spectralMattingCode\my_images.mat
?????文件???????2219??2007-06-12?22:27??spectralMattingCode\README
?????文件???????1452??2009-06-15?15:51??spectralMattingCode\runAll.asv
?????文件???????1473??2009-06-15?16:42??spectralMattingCode\runAll.m
?????文件???22792256??2007-06-07?15:46??spectralMattingCode\scribbles.mat
?????文件??????32322??2009-06-15?16:54??spectralMattingCode\ship_alpha.tif
?????文件???????1482??2007-06-04?16:20??spectralMattingCode\SpectralMatting.m
............此處省略29個文件信息
- 上一篇:imagefusion2836201
- 下一篇:LVRclass21
評論
共有 條評論