It compares the pixel values to the center pixel.
The pixels x are compared to the value of the pixel o. Result returned is an LBP code value (8 bits example : 00100111). If x is greater than o the returned value is 1 otherwise 0.
In the following example:
| 110
| 160
| 205
|
| 111
| 150
| 130
|
| 90
| 155
| 85
|
the pixels are compared to the center pixel value 150 so the LBP code will be [01100010]