pub struct SpectralImage {
pub width: usize,
pub height: usize,
pub channels: Vec<SpectralChannel>,
pub layout: PlaneLayout,
pub samples: BitPackedTensor,
pub black: Vec<f32>,
pub white: Vec<f32>,
pub make: String,
pub model: String,
pub provenance: Provenance,
pub profile: Option<ColourProfile>,
pub view: Option<ViewTransform>,
}Expand description
A spectral-first raw image: K channels of sensor counts plus what those counts mean.
Fields§
§width: usize§height: usize§channels: Vec<SpectralChannel>§layout: PlaneLayout§samples: BitPackedTensorSensor counts, bitpacked at native depth. Mosaic: shape [height, width]. Planar: [channels, height, width].
black: Vec<f32>Per-channel black level in raw counts.
white: Vec<f32>Per-channel white (saturation) level in raw counts.
make: String§model: String§provenance: Provenance§profile: Option<ColourProfile>Tiered camera→VSF-RGB characterization; None = uncharacterized (render raw-camera). See ColourProfile.
view: Option<ViewTransform>The translateration log; None = no view ops recorded. See ViewTransform.
Implementations§
Source§impl SpectralImage
impl SpectralImage
Trait Implementations§
Source§impl Clone for SpectralImage
impl Clone for SpectralImage
Source§fn clone(&self) -> SpectralImage
fn clone(&self) -> SpectralImage
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 moreSource§impl Debug for SpectralImage
impl Debug for SpectralImage
Source§impl PartialEq for SpectralImage
impl PartialEq for SpectralImage
impl StructuralPartialEq for SpectralImage
Auto Trait Implementations§
impl Freeze for SpectralImage
impl RefUnwindSafe for SpectralImage
impl Send for SpectralImage
impl Sync for SpectralImage
impl Unpin for SpectralImage
impl UnsafeUnpin for SpectralImage
impl UnwindSafe for SpectralImage
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