資源簡介
改程序是本人編寫的,可以運行,采用的是yale人臉數據,采用4*4分塊,無權值,統一旋轉不變模式
代碼片段和文件信息
%?This?function?is?used?to?combine?the?histogram?feature?of?the?lbp?code
%?iamge
function?combine_feature_vector=combine_h_feature(lbp_image)
k=4;%?the?blocks
mapping=myself_mapping(8);%?getmapping
bins=?mapping.num;%?bins
feature_vector=zeros(1bins*k*k);%?the?feature?vector?variant
%?combination?of?the?feature
vector_lable=0;
for?i=1:k*k
????for?j=1:bins
????????vector_lable=vector_lable+1;
????????feature_vector(vector_lable)=lbp_image{i}(j);
????end
end
combine_feature_vector=feature_vector;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4616??2012-07-16?11:32??4x4分塊\LBP_C.m
?????文件???????4339??2012-07-16?15:04??4x4分塊\mul_reading.m
?????文件????????519??2012-07-13?15:18??4x4分塊\combine_h_feature.m
?????文件????????923??2012-07-12?09:51??4x4分塊\myself_mapping.m
?????目錄??????????0??2012-07-16?18:02??4x4分塊
-----------?---------??----------?-----??----
????????????????10397????????????????????5
- 上一篇:BP-face-recognization
- 下一篇:sift
評論
共有 條評論