pub fn compute_histogram_diff(hist_a: &[u32], hist_b: &[u32]) -> f32Expand description
Computes a normalised histogram difference between two histograms.
Both slices must be the same length; returns 0.0 if empty.
The result is the sum of absolute differences divided by the total
number of pixels represented in hist_a.