pub struct SpectralModel {
pub scalar: ScalarModel,
pub step_nm: f64,
pub exposure: Option<ExposureModel>,
pub enlarger: Option<PrintModel>,
pub scan: Option<ScanModel>,
}Expand description
Every constant a spectral render integrates with.
Fields§
§scalar: ScalarModelThe curve, the paper and the enlarger, which are the scalar model’s numbers and are applied identically here.
step_nm: f64Wavelength step of every table below.
One number for the whole model, not one per stage: all three integrate on the same grid, and a stage that carried its own copy could be zero while another was not — which multiplies that stage’s integral by zero and looks like a dark frame.
exposure: Option<ExposureModel>The exposure, when it is the closed-form reconstruction.
enlarger: Option<PrintModel>The print, when it goes through dye absorption.
scan: Option<ScanModel>The scan, when it goes through reflectance.
Implementations§
Source§impl SpectralModel
impl SpectralModel
Sourcepub fn is_spectral(&self) -> bool
pub fn is_spectral(&self) -> bool
Whether any stage integrates over wavelength.
A model where this is false is the scalar path, and
PreparedRender::scalar_model
describes it with four numbers per layer instead.
Trait Implementations§
Source§impl Clone for SpectralModel
impl Clone for SpectralModel
Source§impl Debug for SpectralModel
impl Debug for SpectralModel
Source§impl PartialEq for SpectralModel
impl PartialEq for SpectralModel
impl StructuralPartialEq for SpectralModel
Auto Trait Implementations§
impl Forget for SpectralModel
impl Freeze for SpectralModel
impl Move for SpectralModel
impl RefUnwindSafe for SpectralModel
impl Send for SpectralModel
impl Sync for SpectralModel
impl Unpin for SpectralModel
impl UnsafeUnpin for SpectralModel
impl UnwindSafe for SpectralModel
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
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> ⓘ
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> ⓘ
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