Function extract_spectrum
Source pub fn extract_spectrum(data: &Array3<f64>, y: usize, x: usize) -> Array1<f64>
Expand description
Extract a single spectrum (all TOF bins) from a pixel in the 3D array.
§Arguments
data — 3D array with shape (n_tof, height, width).
y — Pixel row.
x — Pixel column.
§Returns
1D array of length n_tof.