[][src]Struct opencv::core::Image2D

pub struct Image2D { /* fields omitted */ }

Implementations

impl Image2D[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]

impl Drop for Image2D[src]

impl Image2DTrait for Image2D[src]

impl Send for Image2D[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.