pub struct MeasurementSpec {
pub frames: Vec<FrameSpec>,
pub dark_frame: Option<PathBuf>,
pub flat_field: Option<PathBuf>,
pub background: Option<ImageSet>,
pub mask: Option<ImageSet>,
pub preprocessing: PreprocessingConfig,
}Expand description
Serializable specification for loading a measurement stack.
Fields§
§frames: Vec<FrameSpec>Measurement files in acquisition-frame order.
dark_frame: Option<PathBuf>Optional shared detector dark image, resolved relative to the manifest.
flat_field: Option<PathBuf>Optional shared positive flat-field image, resolved relative to the manifest.
background: Option<ImageSet>Optional shared or per-frame additive background images.
mask: Option<ImageSet>Optional shared or per-frame binary mask images; non-zero pixels are valid.
preprocessing: PreprocessingConfigCorrections applied when the resident stack is built or a lazy frame is decoded.
Implementations§
Trait Implementations§
Source§impl Clone for MeasurementSpec
impl Clone for MeasurementSpec
Source§fn clone(&self) -> MeasurementSpec
fn clone(&self) -> MeasurementSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeasurementSpec
impl Debug for MeasurementSpec
Source§impl<'de> Deserialize<'de> for MeasurementSpec
impl<'de> Deserialize<'de> for MeasurementSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MeasurementSpec
impl RefUnwindSafe for MeasurementSpec
impl Send for MeasurementSpec
impl Sync for MeasurementSpec
impl Unpin for MeasurementSpec
impl UnsafeUnpin for MeasurementSpec
impl UnwindSafe for MeasurementSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more