Ask Your Question

Revision history [back]

Nevermind, found the explanation, and now it becomes all clear. The 8 values combined make the 256 bit LUT which is constructed by comparing the LBP regional subrectangles to the center subrectangle. The rect stored in the features section is the top left region used to calculated the LPB feature.

Nevermind, found the explanation, and now it becomes all clear. The 8 values combined make the 256 bit LUT which is constructed by comparing the LBP regional subrectangles to the center subrectangle. The rect stored in the features section is the top left region used to calculated the LPB feature.

More detailed info on this: http://w3facility.org/question/understanding-opencv-lbp-implementation/

Basically accept that a 256 bit LUT can be used to bitshift certain values and to retrieve the 0's and 1's without going into too much details.