pub struct Image2D { /* private fields */ }Implementations§
source§impl 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
 
sourcepub fn new_def(src: &UMat) -> Result<Image2D>
 
pub fn new_def(src: &UMat) -> 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.
 
Note
This alternative version of [new] function uses the following default values for its arguments:
- norm: false
 - alias: false
 
pub fn copy(i: &Image2D) -> Result<Image2D>
pub fn copy_mut(unnamed: 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§
source§impl Boxed for Image2D
 
impl Boxed for Image2D
source§impl Image2DTrait for Image2D
 
impl Image2DTrait for Image2D
source§impl 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§
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