Expand description
Functions for computing local binary patterns.
Statics§
- Lookup table for the least circular shift of a byte.
- Maps uniform bytes (i.e. those with at most two bit transitions) to their least circular shifts, and non-uniform bytes to 10101010 (an arbitrarily chosen non-uniform representative).
Functions§
- Number of bit transitions in a byte, counting the last and final bits as adjacent.
- Computes the basic local binary pattern of a pixel, or None if it’s too close to the image boundary.
- Returns the least value of all rotations of a byte.