Struct opencv::viz::Color

source ·
pub struct Color { /* private fields */ }
Expand description

This class represents color in BGR order.

Implementations§

source§

impl Color

source

pub fn default() -> Result<Color>

/////////////////////////////////////////////////////////////////////////////////////////////////// cv::viz::Color

source

pub fn new(gray: f64) -> Result<Color>

The three channels will have the same value equal to gray.

source

pub fn new_1(blue: f64, green: f64, red: f64) -> Result<Color>

source

pub fn new_2(color: Scalar) -> Result<Color>

source

pub fn black() -> Result<Color>

source

pub fn blue() -> Result<Color>

source

pub fn green() -> Result<Color>

source

pub fn red() -> Result<Color>

source

pub fn cyan() -> Result<Color>

source

pub fn yellow() -> Result<Color>

source

pub fn magenta() -> Result<Color>

source

pub fn white() -> Result<Color>

source

pub fn gray() -> Result<Color>

source

pub fn silver() -> Result<Color>

source

pub fn mlab() -> Result<Color>

source

pub fn navy() -> Result<Color>

source

pub fn maroon() -> Result<Color>

source

pub fn teal() -> Result<Color>

source

pub fn olive() -> Result<Color>

source

pub fn purple() -> Result<Color>

source

pub fn azure() -> Result<Color>

source

pub fn chartreuse() -> Result<Color>

source

pub fn rose() -> Result<Color>

source

pub fn lime() -> Result<Color>

source

pub fn gold() -> Result<Color>

source

pub fn orange() -> Result<Color>

source

pub fn orange_red() -> Result<Color>

source

pub fn indigo() -> Result<Color>

source

pub fn brown() -> Result<Color>

source

pub fn apricot() -> Result<Color>

source

pub fn pink() -> Result<Color>

source

pub fn raspberry() -> Result<Color>

source

pub fn cherry() -> Result<Color>

source

pub fn violet() -> Result<Color>

source

pub fn amethyst() -> Result<Color>

source

pub fn bluberry() -> Result<Color>

source

pub fn celestial_blue() -> Result<Color>

source

pub fn turquoise() -> Result<Color>

source

pub fn not_set() -> Result<Color>

Trait Implementations§

source§

impl Boxed for Color

source§

unsafe fn from_raw(ptr: *mut c_void) -> Self

Wrap the specified raw pointer Read more
source§

fn into_raw(self) -> *mut c_void

Return an the underlying raw pointer while consuming this wrapper. Read more
source§

fn as_raw(&self) -> *const c_void

Return the underlying raw pointer. Read more
source§

fn as_raw_mut(&mut self) -> *mut c_void

Return the underlying mutable raw pointer Read more
source§

impl ColorTrait for Color

source§

impl ColorTraitConst for Color

source§

impl Debug for Color

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for Color

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Send for Color

Auto Trait Implementations§

§

impl RefUnwindSafe for Color

§

impl !Sync for Color

§

impl Unpin for Color

§

impl UnwindSafe for Color

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.