[−][src]Struct opencv::core::Image2D
Implementations
impl Image2D
[src]
pub fn as_raw_Image2D(&self) -> *const c_void
[src]
pub fn as_raw_mut_Image2D(&mut self) -> *mut c_void
[src]
impl Image2D
[src]
pub fn default() -> Result<Image2D>
[src]
pub fn new(src: &UMat, norm: bool, alias: bool) -> Result<Image2D>
[src]
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>
[src]
pub fn can_create_alias(u: &UMat) -> Result<bool>
[src]
Indicates if creating an aliased image should succeed. Depends on the underlying platform and the dimensions of the UMat.
pub fn is_format_supported(depth: i32, cn: i32, norm: bool) -> Result<bool>
[src]
Indicates if the image format is supported.
Trait Implementations
impl Boxed for Image2D
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for Image2D
[src]
impl Image2DTrait for Image2D
[src]
fn as_raw_Image2D(&self) -> *const c_void
[src]
fn as_raw_mut_Image2D(&mut self) -> *mut c_void
[src]
fn ptr(&self) -> Result<*mut c_void>
[src]
impl Send for Image2D
[src]
Auto Trait Implementations
impl RefUnwindSafe for Image2D
impl !Sync for Image2D
impl Unpin for Image2D
impl UnwindSafe for Image2D
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,