pub fn count_unique_colors( pixels: &[u32], width: usize, rect: &PixelRect, ) -> usize
Count the number of unique colors in a pixel region