pub struct AiVisionColor {
pub rgb: Rgb<u8>,
pub hue_range: f32,
pub saturation_range: f32,
}
Expand description
A color signature used by an AI Vision Sensor to detect color blobs.
Fields§
§rgb: Rgb<u8>
The RGB color value.
hue_range: f32
The accepted hue range of the color. VEXcode limits this value to [0, 20]
saturation_range: f32
The accepted saturation range of the color.
Trait Implementations§
Source§impl Clone for AiVisionColor
impl Clone for AiVisionColor
Source§fn clone(&self) -> AiVisionColor
fn clone(&self) -> AiVisionColor
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AiVisionColor
impl Debug for AiVisionColor
Source§impl PartialEq for AiVisionColor
impl PartialEq for AiVisionColor
impl Copy for AiVisionColor
impl StructuralPartialEq for AiVisionColor
Auto Trait Implementations§
impl Freeze for AiVisionColor
impl RefUnwindSafe for AiVisionColor
impl Send for AiVisionColor
impl Sync for AiVisionColor
impl Unpin for AiVisionColor
impl UnwindSafe for AiVisionColor
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