資源簡介
用LBP進行人臉識別,進行紋理特征提取后來提升為一種有效的紋理描述算子,度量和提取圖像局部的紋理信息,對光照具有不變性。LBP有很多變種,或說改進。單純的LBP記錄像素點與其周圍像素點的對比信息,或說差異。從圖1我們看到,最左邊的是原圖,標號為example。我們要檢測某個像素點的某些信息,在圖1中,對于9個方格中中間方格(方格中的數字是像素點灰度值大小),做一個閾值化處理。大于等于中心點像素的,則標記為1,小于的則標記為0。最后將中心像素點周圍的11110001二進制數化為十進制數,得到LBP值
代碼片段和文件信息
%LBP?returns?the?local?binary?pattern?image?or?LBP?histogram?of?an?image.
%??J?=?LBP(IRNMAPPINGMODE)?returns?either?a?local?binary?pattern
%??coded?image?or?the?local?binary?pattern?histogram?of?an?intensity
%??image?I.?The?LBP?codes?are?computed?using?N?sampling?points?on?a
%??circle?of?radius?R?and?using?mapping?table?defined?by?MAPPING.
%??See?the?getmapping?function?for?different?mappings?and?use?0?for
%??no?mapping.?Possible?values?for?MODE?are
%???????‘h‘?or?‘hist‘??to?get?a?histogram?of?LBP?codes
%???????‘nh‘???????????to?get?a?normalized?histogram
%??Otherwise?an?LBP?code?image?is?returned.
%
%??J?=?LBP(I)?returns?the?original?(basic)?LBP?histogram?of?image?I
%
%??J?=?LBP(ISPMAPPINGMODE)?computes?the?LBP?codes?using?n?sampling
%??points?defined?in?(n?*?2)?matrix?SP.?The?samp
- 上一篇:MATLAB MIMO信道仿真
- 下一篇:哈工大模式識別--k均值算法
評論
共有 條評論