pub struct Image2D { /* private fields */ }
Implementations
sourceimpl Image2D
impl Image2D
pub fn default() -> Image2D
sourcepub fn new(src: &UMat, norm: bool, alias: bool) -> Result<Image2D>
pub fn new(src: &UMat, norm: bool, alias: bool) -> Result<Image2D>
Parameters
- src: UMat object from which to get image properties and data
- norm: flag to enable the use of normalized channel data types
- alias: flag indicating that the image should alias the src UMat. If true, changes to the image or src will be reflected in both objects.
C++ default parameters
- norm: false
- alias: false
pub fn copy(i: &Image2D) -> Result<Image2D>
pub fn copy_mut(unnamed: &mut Image2D) -> Image2D
sourcepub fn can_create_alias(u: &UMat) -> Result<bool>
pub fn can_create_alias(u: &UMat) -> Result<bool>
Indicates if creating an aliased image should succeed. Depends on the underlying platform and the dimensions of the UMat.
Trait Implementations
sourceimpl Boxed for Image2D
impl Boxed for Image2D
sourceimpl Image2DTrait for Image2D
impl Image2DTrait for Image2D
fn as_raw_mut_Image2D(&mut self) -> *mut c_void
sourceimpl Image2DTraitConst for Image2D
impl Image2DTraitConst for Image2D
impl Send for Image2D
Auto Trait Implementations
impl RefUnwindSafe for Image2D
impl !Sync for Image2D
impl Unpin for Image2D
impl UnwindSafe for Image2D
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more