fpm_rs/measurements/preprocessing.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, Serialize, Deserialize)]
4/// Preprocessing operations configured for a measurement stack.
5pub struct PreprocessingConfig {
6 /// Subtract the shared detector dark frame before other corrections.
7 pub subtract_dark: bool,
8 /// Divide by the shared positive flat-field response after dark subtraction.
9 pub divide_flat_field: bool,
10 /// Divide each acquisition frame by its positive exposure time.
11 pub normalize_exposure: bool,
12 /// Subtract the shared or per-frame additive background.
13 pub subtract_background: bool,
14 /// Replace negative corrected intensities with zero after all other operations.
15 pub clamp_negative: bool,
16}