資源簡介
使用圖像的HSV顏色特征和LBP紋理特征,基于SVM實(shí)現(xiàn)了道路檢測(cè)算法,具有一定的學(xué)習(xí)意義,代碼是MATLAB實(shí)現(xiàn)的

代碼片段和文件信息
function?color_feature=color_feature(I)
rgb=I;
if?size(rgb3)~=3???
????error(‘3?components?is?needed?for?histogram‘);???
end?
hsv=rgb2hsv(rgb);
[mn]=size(hsv(::1));
h=reshape(hsv(::1)‘1m*n);
h1=hist(h8);
h1=h1/sum(h1);
%?h1=?reshape(h?1?8);
h=reshape(hsv(::2)‘1m*n);
h2=hist(h8);
h2=h2/sum(h2);
%?h2=?reshape(h?1?8);
h=reshape(hsv(::3)‘1m*n);
h3=hist(h8);
h3=h3/sum(h3);
%?h3=?reshape(h?1?8);
????
color_feature=[h1h2h3];
end
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????481??2016-12-30?13:36??源代碼\color_feature.m
?????文件????????760??2017-01-09?15:13??源代碼\Deal_predict_label.m
?????文件???????1314??2017-01-09?20:43??源代碼\Evaluation.m
?????文件???????1134??2016-12-25?19:47??源代碼\getmaplbphf.m
?????文件???????1042??2017-01-04?09:12??源代碼\get_feature.m
?????文件???????1379??2017-01-09?16:34??源代碼\get_label.m
?????文件????????334??2016-12-27?13:55??源代碼\get_lbp_value.m
?????文件????????734??2016-12-26?15:30??源代碼\get_transitions.m
?????文件??????28904??2009-12-31?11:11??源代碼\heart_scale.mat
?????文件????????175??2016-12-30?09:56??源代碼\judge.m
?????文件????????308??2017-01-15?18:30??源代碼\label.mat
?????文件????????867??2017-01-09?20:09??源代碼\Last_deal.m
?????文件???????4368??2017-01-09?20:57??源代碼\road_detection.m
?????目錄??????????0??2018-01-11?15:46??源代碼
-----------?---------??----------?-----??----
????????????????41800????????????????????14
評(píng)論
共有 條評(píng)論