pub struct InterImage {
pub gain: f64,
pub sigma_um: f64,
pub pixel_um: f64,
}Expand description
A cyan-sensitive inhibitor layer for one image.
Fields§
§gain: f64How much cyan density the maximum local excess of exposure takes away, as a fraction at full deviation.
sigma_um: f64How far the inhibitor diffuses on the film, in micrometres.
pixel_um: f64Size of one pixel on the film, in micrometres across.
Implementations§
Source§impl InterImage
impl InterImage
Sourcepub fn typical(pixel_um: f64) -> Self
pub fn typical(pixel_um: f64) -> Self
Placeholder values: a 12 % swing and the same diffusion length the DIR couplers use. Neither is measured for any stock.
Sourcepub fn apply(
&self,
density: &mut [[f64; 3]],
light: &[f64],
width: usize,
height: usize,
)
pub fn apply( &self, density: &mut [[f64; 3]], light: &[f64], width: usize, height: usize, )
Apply the layer’s inhibition to a buffer of densities, in place.
light is the fourth layer’s relative exposure per pixel — the linear
quantity, not its logarithm, because the release is a fraction of the
light absorbed and the log would make the mean meaningless.
Trait Implementations§
Source§impl Clone for InterImage
impl Clone for InterImage
impl Copy for InterImage
Auto Trait Implementations§
impl Forget for InterImage
impl Freeze for InterImage
impl Move for InterImage
impl RefUnwindSafe for InterImage
impl Send for InterImage
impl Sync for InterImage
impl Unpin for InterImage
impl UnsafeUnpin for InterImage
impl UnwindSafe for InterImage
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