資源簡介
mean shift圖像分割軟件,只能對灰度圖像進行處理,如果對彩色圖像進行處理,需要轉換
代碼片段和文件信息
function?func_mean_shift_image_segmentation_demo
%?A?simple?demo?for?image?segmentation?using?mean-shift.?This?program?is
%?inspired?by?Bart?Finkston‘s?program?at
%?http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=10161&objectType=file
%?Note:
%?1.?This?program?only?consider?the?image‘s?intensity?value.
%?2.?This?program?can?only?handle?gray?image?only.
%
close?all;?clear?all;?clc;?profile?on;
infilename?=?‘test.jpg‘;
img_orig?=?im2double(imread(infilename));
img?????????=?img_orig(:)‘;
%?user?defined?parameter
bandWidth???=?0.2;??????????????%?bandwidth?parameter
stopThresh??=?5;????????????????%?stopping?criterion?for?iteration
numPts??????????=?length(img)
numClust????????=?0;
bandSq??????????=?bandWidth^2;
initPtInds??????=?1:numPts;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4369??2010-03-02?11:13??func_mean_shift_image_segmentation_demo.m
-----------?---------??----------?-----??----
?????????????????4369????????????????????1
評論
共有 條評論