Expand description
Functions for computing local binary patterns.
Statics§
- MIN_
SHIFT - Lookup table for the least circular shift of a byte.
- UNIFORM_
REPRESENTATIVE_ 2 - 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§
- count_
transitions - Number of bit transitions in a byte, counting the last and final bits as adjacent.
- local_
binary_ pattern - Computes the basic local binary pattern of a pixel, or None if it’s too close to the image boundary.
- min_
shift - Returns the least value of all rotations of a byte.