pub struct Scanner {
pub texture_um: f64,
pub texture_density: f64,
pub shared: f64,
pub optics_um: f64,
pub seed: u64,
}Expand description
A scan: what the optics and the sensor add to the print.
Fields§
§texture_um: f64Correlation length of the density texture, in micrometres.
texture_density: f64Its rms through a APERTURE_UM aperture, in density.
Fraction of the texture’s variance the three channels share, 0..=1.
optics_um: f64Gaussian optics on the print, in micrometres. Zero is no blur.
seed: u64Seed: the texture is a fixture, not a different scan every render.
Implementations§
Source§impl Scanner
impl Scanner
Sourcepub fn measured() -> Self
pub fn measured() -> Self
The numbers measured from lasvegas.dng.
The one thing a single scan cannot do is split what it measures into the parts that made it, so this is the whole texture as one number per property. It is a scan’s, not a film’s: a stock must not carry it.
Sourcepub fn apply(
&self,
pixels: &mut [[f64; 3]],
width: usize,
height: usize,
pixel_um: f64,
)
pub fn apply( &self, pixels: &mut [[f64; 3]], width: usize, height: usize, pixel_um: f64, )
Scan a finished print in place.
pixels are linear reflectance, one per channel. The optics blur that
(light is convolved, not density), then the sensor’s texture multiplies
it back down in density, R·10^-n, which is how a density fluctuation
appears in a linear measurement.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Scanner
impl Freeze for Scanner
impl Move for Scanner
impl RefUnwindSafe for Scanner
impl Send for Scanner
impl Sync for Scanner
impl Unpin for Scanner
impl UnsafeUnpin for Scanner
impl UnwindSafe for Scanner
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