[][src]Struct cv::cuda::GpuMat

pub struct GpuMat {
    pub inner: *mut CGpuMat,
    pub cols: i32,
    pub rows: i32,
    pub depth: i32,
}

GpuMat data structure in rust, bound to an opaque type in C/C++.

Fields

inner: *mut CGpuMat

The pointer to the opaque C/C++ data structure

cols: i32

Number of columns

rows: i32

Number of rows

depth: i32

Depth of this mat

Methods

impl GpuMat[src]

pub fn default() -> GpuMat[src]

Creates a default GpuMat.

pub fn from_raw(inner: *mut CGpuMat) -> GpuMat[src]

Creates a GpuMat from raw pointer.

pub fn upload(&mut self, mat: &Mat)[src]

Uploads a normal Mat

Trait Implementations

impl From<GpuMat> for Mat[src]

impl From<Mat> for GpuMat[src]

impl Drop for GpuMat[src]

impl Debug for GpuMat[src]

Auto Trait Implementations

impl !Send for GpuMat

impl !Sync for GpuMat

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.