[][src]Struct opencv::viz::WImageOverlay

pub struct WImageOverlay { /* fields omitted */ }

This 2D Widget represents an image overlay. :

Methods

impl WImageOverlay[src]

pub fn as_raw_WImageOverlay(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

impl WImageOverlay[src]

pub fn new(image: &dyn ToInputArray, rect: Rect) -> Result<WImageOverlay>[src]

Constructs an WImageOverlay.

Parameters

  • image: BGR or Gray-Scale image.
  • rect: Image is scaled and positioned based on rect.

pub fn set_image(&mut self, image: &dyn ToInputArray) -> Result<()>[src]

Sets the image content of the widget.

Parameters

  • image: BGR or Gray-Scale image.

Trait Implementations

impl Drop for WImageOverlay[src]

impl Send for WImageOverlay[src]

impl Widget2DTrait for WImageOverlay[src]

impl WidgetTrait for WImageOverlay[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.