pub struct Image { /* private fields */ }
Expand description
This structure represents an image to draw.
Image is blended on a frame using the specified mask.
Implementations§
source§impl Image
impl Image
sourcepub fn new(
org_: Point,
img_: &impl MatTraitConst,
alpha_: &impl MatTraitConst
) -> Result<Image>
pub fn new( org_: Point, img_: &impl MatTraitConst, alpha_: &impl MatTraitConst ) -> Result<Image>
Mosaic constructor
§Parameters
- org_: The bottom-left corner of the image
- img_: Image to draw
- alpha_: Alpha channel for image to draw (same size and number of channels)
pub fn default() -> Image
Trait Implementations§
source§impl Boxed for Image
impl Boxed for Image
source§unsafe fn from_raw(ptr: <Image as OpenCVType<'_>>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <Image as OpenCVType<'_>>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(self) -> <Image as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <Image as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(&self) -> <Image as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <Image as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(&mut self) -> <Image as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut(&mut self) -> <Image as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl ImageTrait for Image
impl ImageTrait for Image
source§impl ImageTraitConst for Image
impl ImageTraitConst for Image
impl Send for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl !Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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