pub struct Color { /* private fields */ }
Expand description
This class represents color in BGR order.
Implementations§
source§impl Color
impl Color
sourcepub fn default() -> Result<Color>
pub fn default() -> Result<Color>
/////////////////////////////////////////////////////////////////////////////////////////////////// cv::viz::Color
sourcepub fn new(gray: f64) -> Result<Color>
pub fn new(gray: f64) -> Result<Color>
The three channels will have the same value equal to gray.
pub fn new_1(blue: f64, green: f64, red: f64) -> Result<Color>
pub fn new_2(color: Scalar) -> Result<Color>
pub fn black() -> Result<Color>
pub fn blue() -> Result<Color>
pub fn green() -> Result<Color>
pub fn red() -> Result<Color>
pub fn cyan() -> Result<Color>
pub fn yellow() -> Result<Color>
pub fn magenta() -> Result<Color>
pub fn white() -> Result<Color>
pub fn gray() -> Result<Color>
pub fn silver() -> Result<Color>
pub fn mlab() -> Result<Color>
pub fn maroon() -> Result<Color>
pub fn teal() -> Result<Color>
pub fn olive() -> Result<Color>
pub fn purple() -> Result<Color>
pub fn azure() -> Result<Color>
pub fn chartreuse() -> Result<Color>
pub fn rose() -> Result<Color>
pub fn lime() -> Result<Color>
pub fn gold() -> Result<Color>
pub fn orange() -> Result<Color>
pub fn orange_red() -> Result<Color>
pub fn indigo() -> Result<Color>
pub fn brown() -> Result<Color>
pub fn apricot() -> Result<Color>
pub fn pink() -> Result<Color>
pub fn raspberry() -> Result<Color>
pub fn cherry() -> Result<Color>
pub fn violet() -> Result<Color>
pub fn amethyst() -> Result<Color>
pub fn bluberry() -> Result<Color>
pub fn celestial_blue() -> Result<Color>
pub fn turquoise() -> Result<Color>
pub fn not_set() -> Result<Color>
Trait Implementations§
source§impl Boxed for Color
impl Boxed for Color
source§unsafe fn from_raw(ptr: <Color as OpenCVFromExtern>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <Color as OpenCVFromExtern>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(self) -> <Color as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <Color as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(&self) -> <Color as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <Color as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(&mut self) -> <Color as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut(&mut self) -> <Color as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl ColorTrait for Color
impl ColorTrait for Color
fn as_raw_mut_Color(&mut self) -> *mut c_void
source§impl ColorTraitConst for Color
impl ColorTraitConst for Color
impl Send for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl !Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold
. Read more