pub fn calculate_contrast(image: &ImageBuffer<Luma<u8>, Vec<u8>>) -> f32
Calculate the contrast between two regions