pub enum ColorSpace {
Unknown,
Gray,
Rgb,
Bgr,
Rgba,
Bgra,
LinearRgb,
Hsv,
Depth,
Label,
}Expand description
Semantic interpretation of image channels.
Variants§
Unknown
Channel semantics are not specified.
Gray
One-channel luminance.
Rgb
Nonlinear red, green, blue.
Bgr
Nonlinear blue, green, red.
Rgba
Nonlinear red, green, blue, alpha.
Bgra
Nonlinear blue, green, red, alpha.
LinearRgb
Linear-light red, green, blue.
Hsv
Hue, saturation, value.
Depth
Metric or sensor depth values.
Label
Integer semantic or instance labels.
Implementations§
Source§impl ColorSpace
impl ColorSpace
Sourcepub const fn required_channels(self) -> Option<usize>
pub const fn required_channels(self) -> Option<usize>
Returns the required channel count when the color space fixes one.
Trait Implementations§
Source§impl Clone for ColorSpace
impl Clone for ColorSpace
Source§fn clone(&self) -> ColorSpace
fn clone(&self) -> ColorSpace
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 ColorSpace
impl Debug for ColorSpace
Source§impl Default for ColorSpace
impl Default for ColorSpace
Source§fn default() -> ColorSpace
fn default() -> ColorSpace
Returns the “default value” for a type. Read more
Source§impl Hash for ColorSpace
impl Hash for ColorSpace
Source§impl PartialEq for ColorSpace
impl PartialEq for ColorSpace
Source§fn eq(&self, other: &ColorSpace) -> bool
fn eq(&self, other: &ColorSpace) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ColorSpace
impl Eq for ColorSpace
impl StructuralPartialEq for ColorSpace
Auto Trait Implementations§
impl Freeze for ColorSpace
impl RefUnwindSafe for ColorSpace
impl Send for ColorSpace
impl Sync for ColorSpace
impl Unpin for ColorSpace
impl UnsafeUnpin for ColorSpace
impl UnwindSafe for ColorSpace
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