Function imgproc_rs::util::generate_histogram_percentiles[][src]

pub fn generate_histogram_percentiles(
    input: &Image<f64>,
    percentiles: &mut HashMap<i32, f64>,
    precision: f64
)

A helper function for histogram equalization

Arguments

  • input - a reference to a CIELAB Image
  • percentiles - a mutable HashMap reference relating an L channel intensity to the number of times it occurs in input as a percentile
  • precision - The range of possible L channel intensity values (used to convert the intensity value to an i32, which can be used as a key in HashMap and BTreeMap)