pub fn normalize(
sample: &Array3<f64>,
open_beam: &Array3<f64>,
params: &NormalizationParams,
dark_current: Option<&Array2<f64>>,
) -> Result<NormalizedData, IoError>Expand description
Normalize raw data to transmission using Method 2.
T = (C_sample / C_ob) × (PC_ob / PC_sample)
§Arguments
sample— Raw sample counts, shape (n_tof, height, width).open_beam— Open-beam counts, shape (n_tof, height, width).params— Normalization parameters (proton charges).dark_current— Optional dark-current image to subtract, shape (height, width). If provided, it is subtracted from each TOF frame of both sample and OB.
§Returns
Normalized transmission and uncertainty arrays.