The principal steps for LBP pattern generation are as follows:
- Convert RGB image A into grayscale image G.
- For each pixel with intensity Ic (x,y) in image G, choose P neighboring points (p0, p1 .. pP-1) with corresponding intensity (I0, I1 .. IP-1) at radius R. The radius is defined in pixel units as the difference between two pixels. The pixel and the neighboring points represent a sliding window, W, of the image, G. For radius R = 1, P becomes 8, as shown here.
The sliding window, W0, is represented as an array with
. Here, points 0 to P-1 represent the intensity of P points around the center pixel, c:
The relationship ...