資源簡介
MATLAB運行代碼 可實現對四種動物圖像的分類識別 提取特征進行分類識別

代碼片段和文件信息
function?tfeat?=?get_features(colorimg?mask)
%?特征提取函數
?hsvimg?=?rgb2hsv(colorimg);
?h?=?hsvimg(::1);
?mask1?=?mask(:);
?index?=?mask1>0;
[countsx]?=?imhist(h(index));??????????????????????%繪制直方圖
Hue?=?find(counts?==?max(counts));?
%?ShapeValue?=?regionprops(mask?‘majoraxislength‘‘minoraxislength‘);
%?Shape?=?ShapeValue.MajorAxisLength/ShapeValue.MinorAxisLength;
ShapeValue?=?regionprops(mask?‘eccentricity‘);
Shape?=?ShapeValue.Eccentricity;
tfeat?=?[Hue?Shape?];
%tfeat?=?[feat1?feat2?f.Orientation?f2.Eccentricity?f1.Extent];
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????564??2012-11-29?20:47??the4th\get_features.m
?????文件????????413??2012-11-29?21:45??the4th\recognition.m
?????文件????????299??2012-11-30?00:04??the4th\RGB2bw.m
?????文件??????47751??2016-09-04?15:05??the4th\test1.jpg
?????文件??????27724??2016-09-04?15:29??the4th\the4th.fig
?????文件??????12382??2016-09-04?15:29??the4th\the4th.m
?????文件??????19293??2016-09-04?14:58??the4th\大象.jpg
?????文件?????217560??2016-09-04?12:23??the4th\狗.jpg
?????文件???????6430??2016-09-04?12:15??the4th\貓.jpg
?????文件??????43544??2016-09-04?15:00??the4th\馬.jpg
?????目錄??????????0??2017-02-11?17:37??the4th
-----------?---------??----------?-----??----
???????????????375960????????????????????11
- 上一篇:龍格庫塔原理詳解及解微分方程組的實現
- 下一篇:六自由度機器人源程序
評論
共有 條評論