pub enum ColorConversion {
BgrToRgb,
RgbToBgr,
BgrToGray,
GrayToRgb,
}Expand description
Supported color-space conversions.
Variants§
BgrToRgb
Swap channels 0 and 2 of a 3-channel BGR image to produce RGB.
RgbToBgr
Swap channels 0 and 2 of a 3-channel RGB image to produce BGR.
BgrToGray
Convert a BGR image to single-channel grayscale using OpenCV weights.
GrayToRgb
Broadcast a grayscale image to 3-channel RGB.
Trait Implementations§
Source§impl Clone for ColorConversion
impl Clone for ColorConversion
Source§fn clone(&self) -> ColorConversion
fn clone(&self) -> ColorConversion
Returns a duplicate of the value. Read more
1.0.0 · 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 ColorConversion
impl Debug for ColorConversion
Source§impl PartialEq for ColorConversion
impl PartialEq for ColorConversion
impl Copy for ColorConversion
impl Eq for ColorConversion
impl StructuralPartialEq for ColorConversion
Auto Trait Implementations§
impl Freeze for ColorConversion
impl RefUnwindSafe for ColorConversion
impl Send for ColorConversion
impl Sync for ColorConversion
impl Unpin for ColorConversion
impl UnsafeUnpin for ColorConversion
impl UnwindSafe for ColorConversion
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