pub struct CameraCalibration {
pub model: &'static str,
pub color_matrix_1: Option<[f64; 9]>,
pub illuminant_1: Option<u16>,
pub color_matrix_2: Option<[f64; 9]>,
pub illuminant_2: Option<u16>,
}Expand description
Camera color calibration data.
Stores one or two color matrices following the DNG dual-illuminant model. When two matrices are present, raw processors can interpolate between them based on the scene’s correlated color temperature.
Fields§
§model: &'static strCamera model identifier (e.g., “ILCE-7RM5”)
color_matrix_1: Option<[f64; 9]>Color matrix for calibration illuminant 1 (3x3, row-major, XYZ -> camera native)
illuminant_1: Option<u16>EXIF LightSource code for illuminant 1
color_matrix_2: Option<[f64; 9]>Color matrix for calibration illuminant 2 (3x3, row-major, XYZ -> camera native)
illuminant_2: Option<u16>EXIF LightSource code for illuminant 2
Trait Implementations§
Source§impl Clone for CameraCalibration
impl Clone for CameraCalibration
Source§fn clone(&self) -> CameraCalibration
fn clone(&self) -> CameraCalibration
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 moreAuto Trait Implementations§
impl Freeze for CameraCalibration
impl RefUnwindSafe for CameraCalibration
impl Send for CameraCalibration
impl Sync for CameraCalibration
impl Unpin for CameraCalibration
impl UnsafeUnpin for CameraCalibration
impl UnwindSafe for CameraCalibration
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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