pub enum CameraProfile {
Srgb,
Generic,
Observer,
Measured(Sensor),
}Expand description
Which sensor the RGB triple is assumed to have come from.
This is the assumption the whole spectral path is conditional on, so it is a
named, recorded choice rather than a constant buried in a constructor. The
name reaches SpectralContext::identity, which reaches every baked table, so
a table cannot be loaded against a different camera by accident.
Variants§
Srgb
The linear sRGB primaries: the triple is an sRGB colour, which is what the program is actually handed. The default, because it is the only option that is exactly right for the input.
Generic
Three broad Gaussians: the stand-in from before any measured camera existed. Kept because it is the assumption the early benchmarks used.
Observer
The CIE 1931 2 degree observer, for input that is already XYZ.
Measured(Sensor)
A measured spectral sensitivity, for example an import of the camSPEC database.
Implementations§
Trait Implementations§
Source§impl Clone for CameraProfile
impl Clone for CameraProfile
Source§impl Debug for CameraProfile
impl Debug for CameraProfile
Auto Trait Implementations§
impl Forget for CameraProfile
impl Freeze for CameraProfile
impl Move for CameraProfile
impl RefUnwindSafe for CameraProfile
impl Send for CameraProfile
impl Sync for CameraProfile
impl Unpin for CameraProfile
impl UnsafeUnpin for CameraProfile
impl UnwindSafe for CameraProfile
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