pub struct Image2D { /* private fields */ }
Implementations§
source§impl Image2D
impl Image2D
pub fn default() -> Image2D
sourcepub fn new(
src: &impl UMatTraitConst,
norm: bool,
alias: bool
) -> Result<Image2D>
pub fn new( src: &impl UMatTraitConst, 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: &impl UMatTraitConst) -> Result<Image2D>
pub fn new_def(src: &impl UMatTraitConst) -> 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: &impl Image2DTraitConst) -> Result<Image2D>
pub fn copy_mut(unnamed: Image2D) -> Image2D
sourcepub fn can_create_alias(u: &impl UMatTraitConst) -> Result<bool>
pub fn can_create_alias(u: &impl UMatTraitConst) -> 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§unsafe fn from_raw(ptr: <Image2D as OpenCVType<'_>>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <Image2D as OpenCVType<'_>>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(self) -> <Image2D as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <Image2D as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(&self) -> <Image2D as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <Image2D as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(
&mut self
) -> <Image2D as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self ) -> <Image2D as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
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 Freeze for Image2D
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