pub fn compute_stats(
data: &NDDataBuffer,
dims: &[NDDimension],
bgd_width: usize,
) -> StatsResultExpand description
Compute min/max/mean/sigma/total from an NDDataBuffer, with min/max positions and optional background subtraction.
When bgd_width > 0, the average of edge pixels (bgd_width pixels from each
edge of a 2D image) is subtracted: net = total - bgd_avg * num_elements.
When bgd_width == 0, net = total.