pub fn build_tof_hist(
frames: &[FrameBinView],
rt_lo: usize,
rt_hi: usize,
bin_lo: usize,
bin_hi: usize,
im_lo: usize,
im_hi: usize,
scale: &TofScale,
) -> (Vec<f32>, Vec<f32>)Expand description
Build a histogram over CSR bins (one value per bin in [bin_lo..bin_hi]).
Returns (hist, centers) where:
hist[k]= summed intensity for bin (bin_lo + k)centers[k]= TOF center of that bin (scale.center)