pub enum BayerPattern {
RGGB,
BGGR,
GRBG,
GBRG,
}Expand description
The camera bayer pattern
Variants§
RGGB
Red, green on the first row; green, blue on the second.
BGGR
Blue, green on the first row; green, red on the second.
GRBG
Green, red on the first row; blue, green on the second.
GBRG
Green, blue on the first row; red, green on the second.
Implementations§
Source§impl BayerPattern
impl BayerPattern
Sourcepub fn superpixel_offsets(&self) -> SuperpixelOffsets
pub fn superpixel_offsets(&self) -> SuperpixelOffsets
The position of each colour within this pattern’s 2x2 tile.
The pattern is named for its tile read left to right, top to bottom, so
RGGB puts red at (0, 0), green at (1, 0) and (0, 1), and blue at
(1, 1).
Trait Implementations§
Source§impl Clone for BayerPattern
impl Clone for BayerPattern
Source§fn clone(&self) -> BayerPattern
fn clone(&self) -> BayerPattern
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 moreimpl Copy for BayerPattern
Source§impl Debug for BayerPattern
impl Debug for BayerPattern
Source§impl From<BayerPattern> for String
impl From<BayerPattern> for String
Source§fn from(pattern: BayerPattern) -> Self
fn from(pattern: BayerPattern) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BayerPattern
impl PartialEq for BayerPattern
impl StructuralPartialEq for BayerPattern
Auto Trait Implementations§
impl Freeze for BayerPattern
impl RefUnwindSafe for BayerPattern
impl Send for BayerPattern
impl Sync for BayerPattern
impl Unpin for BayerPattern
impl UnsafeUnpin for BayerPattern
impl UnwindSafe for BayerPattern
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> 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