資源簡介
超像素分割為圖像分割,圖像處理的基礎,文件為MATLAB和C混編的代碼,demo為主程序,運行demo主程序進行超像素分割。

代碼片段和文件信息
%======================================================================
%?Simple?Non-Iterative?Clustering?(SNIC)?demo
%?Copyright?(C)?2017?Ecole?Polytechnique?Federale?de?Lausanne
%?File?created?by?Radhakrishna?Achanta?(firstname.lastname@epfl.ch)
%
%?If?you?use?the?code?for?your?research?please?cite:
%
%?“Superpixels?and?Polygons?using?Simple?Non-Iterative?Clustering“
%?Radhakrishna?Achanta?and?Sabine?Susstrunk
%?CVPR?2017
%======================================================================
%Input?parameters?for?snic_mex?function?are:
%
%[1]?8?bit?images?(color?or?grayscale)
%[2]?The?number?of?superpixels
%?[3]?Compactness?factor?[10?40]
%
%Ouputs?are:
%?[1]?The?labels?of?the?segmented?image
%?[2]?The?number?of?labels
%
%NOTES:
%[2]?Before?using?this?demo?code?you?must?compile?the?C++?file?usingthe?command:
%?mex?snic_mex.cpp
%?==========================================
close?all;
filename?=?‘247085.jpg‘;
img?=?imread(filename);
imshow(img);
[height?width?colors]?=?size(img);
tic;
%-------------------------------------------------
numsuperpixels?=?149;
compactness?=?15.0;
[labels?numlabels]?=?snic_mex(imgnumsuperpixelscompactness);
%-------------------------------------------------
timetaken?=?toc;
disp(num2str(timetaken));
imagesc(labels);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????6148??2017-06-07?17:52??.DS_Store
?????文件???????86784??2013-01-23?07:21??108069.jpg
?????文件???????48797??2013-01-23?07:21??118035.jpg
?????文件???????23655??2013-01-23?07:21??135069.jpg
?????文件???????84687??2013-01-23?07:21??144067.jpg
?????文件???????55274??2013-01-23?07:21??189011.jpg
?????文件???????60400??2013-01-23?07:21??198004.jpg
?????文件???????65777??2013-01-23?07:21??206062.jpg
?????文件???????69123??2013-01-23?07:21??247085.jpg
?????文件???????71084??2013-01-23?07:21??28096.jpg
?????文件???????47609??2013-01-23?07:21??3063.jpg
?????文件??????115454??2013-01-23?07:21??33039.jpg
?????文件???????82640??2013-01-23?07:21??35010.jpg
?????文件???????71425??2013-01-23?07:21??54082.jpg
?????文件???????64902??2013-01-23?07:21??70090.jpg
?????文件???????54207??2013-01-23?07:21??8068.jpg
?????文件???????57286??2015-06-02?16:16??bee.jpg
?????文件????????1272??2018-01-31?21:50??snic_demo.m
?????文件???????14232??2018-05-10?20:03??snic_mex.cpp
?????文件???????73216??2018-05-11?18:31??snic_mex.mexw64
?????文件??????700416??2018-05-11?18:31??snic_mex.mexw64.pdb
?????目錄???????????0??2018-09-20?21:24??SNIC算法\
?????文件????????6148??2017-06-07?17:52??SNIC算法\.DS_Store
?????文件???????86784??2013-01-23?07:21??SNIC算法\108069.jpg
?????文件???????48797??2013-01-23?07:21??SNIC算法\118035.jpg
?????文件???????23655??2013-01-23?07:21??SNIC算法\135069.jpg
?????文件???????84687??2013-01-23?07:21??SNIC算法\144067.jpg
?????文件???????55274??2013-01-23?07:21??SNIC算法\189011.jpg
?????文件???????60400??2013-01-23?07:21??SNIC算法\198004.jpg
?????文件???????65777??2013-01-23?07:21??SNIC算法\206062.jpg
?????文件???????69123??2013-01-23?07:21??SNIC算法\247085.jpg
............此處省略12個文件信息
- 上一篇:adaboost人臉檢測算法
- 下一篇:獨立向量分析
評論
共有 條評論