简体   繁体   中英

Calculate Local Binary Pattern with radius

I'm confused with a local binary pattern that uses radius. I have read the journal by Ojala et al, where they use this equation to calculate the center pixel :Eq.1

在此处输入图片说明


Where :Eq.2

在此处输入图片说明


with :
R = Radius
P = amount of neighborhood pixel
gp = neighborhood pixel
gc = center pixel

for example R=2;P=16(from 0-15)
if s(g15-gc)=1 and the other is 0

so the LBP value is:
LBP=1*2^15=32768

so, how this big value turn into pixel value?

This is not how LBP works, it calculates the value of neighboring pixels (ie 0 or 1). Then LBP makes a pattern of it for example 1101101 which is in some binary form. After that it converts the binary value to decimal value. **

**> We will put that value in pixel value as lbp works on gray images so

it wont matter how big the value is.**

**

For more explaination see the picture below 在此处输入图片说明 https://slideplayer.com/slide/4512194/15/images/18/LBP(Local+Binary+Pattern).jpg

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM