Trait opencv::viz::WImage3DTrait

source ·
pub trait WImage3DTrait: WImage3DTraitConst + Widget3DTrait {
    // Required method
    fn as_raw_mut_WImage3D(&mut self) -> *mut c_void;

    // Provided methods
    fn set_image(&mut self, image: &impl ToInputArray) -> Result<()> { ... }
    fn set_size(&mut self, size: Size) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::viz::WImage3D

Required Methods§

Provided Methods§

source

fn set_image(&mut self, image: &impl ToInputArray) -> Result<()>

Sets the image content of the widget.

Parameters
  • image: BGR or Gray-Scale image.
source

fn set_size(&mut self, size: Size) -> Result<()>

Sets the image size of the widget.

Parameters
  • size: the new size of the image.

Implementors§