pub fn min_shift(byte: u8) -> u8
Expand description

Returns the least value of all rotations of a byte.

Examples

use imageproc::local_binary_patterns::min_shift;

let byte = 0b10110100;
assert_eq!(min_shift(byte), 0b00101101);