fn preprocess(
magnitude: &[f64],
grid: &Grid,
affine: &[f64; 16],
params: &SynthSegParams,
) -> Preprocessedfn preprocess(
magnitude: &[f64],
grid: &Grid,
affine: &[f64; 16],
params: &SynthSegParams,
) -> Preprocessed