Struct opencv::core::GpuMatND[][src]

pub struct GpuMatND { /* fields omitted */ }

Implementations

impl GpuMatND[src]

impl GpuMatND[src]

pub fn default() -> Result<GpuMatND>[src]

default constructor

pub fn new(size: GpuMatND_SizeArray, typ: i32) -> Result<GpuMatND>[src]

default constructor

Overloaded parameters

Parameters

  • size: Array of integers specifying an n-dimensional array shape.
  • type: Array type. Use CV_8UC1, …, CV_16FC4 to create 1-4 channel matrices, or CV_8UC(n), …, CV_64FC(n) to create multi-channel (up to CV_CN_MAX channels) matrices.

pub fn new_1(
    size: GpuMatND_SizeArray,
    typ: i32,
    data: *mut c_void,
    step: GpuMatND_StepArray
) -> Result<GpuMatND>
[src]

default constructor

Overloaded parameters

Parameters

  • size: Array of integers specifying an n-dimensional array shape.
  • type: Array type. Use CV_8UC1, …, CV_16FC4 to create 1-4 channel matrices, or CV_8UC(n), …, CV_64FC(n) to create multi-channel (up to CV_CN_MAX channels) matrices.
  • data: Pointer to the user data. Matrix constructors that take data and step parameters do not allocate matrix data. Instead, they just initialize the matrix header that points to the specified data, which means that no data is copied. This operation is very efficient and can be used to process external data using OpenCV functions. The external data is not automatically deallocated, so you should take care of it.
  • step: Array of _size.size()-1 steps in case of a multi-dimensional array (the last step is always set to the element size). If not specified, the matrix is assumed to be continuous.

C++ default parameters

  • step: StepArray()

pub fn copy(unnamed: &GpuMatND) -> GpuMatND[src]

pub fn copy_mut(unnamed: &mut GpuMatND) -> GpuMatND[src]

Trait Implementations

impl Boxed for GpuMatND[src]

impl Clone for GpuMatND[src]

fn clone(&self) -> Self[src]

Calls try_clone() and panics if that fails

impl Drop for GpuMatND[src]

impl GpuMatNDTrait for GpuMatND[src]

impl Send for GpuMatND[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.