[英]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
我读过Ojala等人的日记,他们在其中使用此公式计算中心像素:Eq.1
Where :Eq.2 哪里:Eq.2
with : 与:
R = Radius R =半径
P = amount of neighborhood pixel P =邻域像素数量
gp = neighborhood pixel gp =邻域像素
gc = center pixel gc =中心像素
for example R=2;P=16(from 0-15)
例如R = 2; P = 16(从0-15开始)
if s(g15-gc)=1 and the other is 0如果s(g15-gc)= 1且另一个为0
so the LBP value is:因此LBP值为:
LBP=1*2^15=32768LBP = 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). LBP不是这样工作的,它会计算相邻像素的值(即0或1)。 Then LBP makes a pattern of it for example 1101101 which is in some binary form.
然后,LBP以某种二进制形式制作一个模式,例如1101101。 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 **>因为lbp在灰色图像上起作用,所以我们将该值放在像素值中,因此
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
https://slideplayer.com/slide/4512194/15/images/18/LBP(Local+Binary+Pattern).jpg
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.