pub struct GpuMatND { /* private fields */ }

Implementations

default constructor

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.

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()

Trait Implementations

Wrap the specified raw pointer Read more
Return an the underlying raw pointer while consuming this wrapper. Read more
Return the underlying raw pointer. Read more
Return the underlying mutable raw pointer Read more

Calls try_clone() and panics if that fails

Performs copy-assignment from source. Read more
Executes the destructor for this type. Read more
! includes several bit-fields: Read more
matrix dimensionality
shape of this array
! step values Their semantics is identical to the semantics of step for Mat. Read more
Allocates GPU memory. Suppose there is some GPU memory already allocated. In that case, this method may choose to reuse that GPU memory under the specific condition: it must be of the same size and type, not externally allocated, the GPU memory is continuous(i.e., isContinuous() is true), and is not a sub-matrix of another GpuMatND (i.e., isSubmatrix() is false). In other words, this method guarantees that the GPU memory allocated by this method is always continuous and is not a sub-region of another GpuMatND. Read more
! includes several bit-fields: Read more
matrix dimensionality
shape of this array
! step values Their semantics is identical to the semantics of step for Mat. Read more
Creates a full copy of the array and the underlying data. The method creates a full copy of the array. It mimics the behavior of Mat::clone(), i.e. the original step is not taken into account. So, the array copy is a continuous array occupying total()*elemSize() bytes. Read more
Creates a full copy of the array and the underlying data. The method creates a full copy of the array. It mimics the behavior of Mat::clone(), i.e. the original step is not taken into account. So, the array copy is a continuous array occupying total()*elemSize() bytes. Read more
Creates a GpuMat header for a 2D plane part of an n-dim matrix. Read more
Creates a GpuMat header for a 2D plane part of an n-dim matrix. Read more
Extracts a 2D plane part of an n-dim matrix if this GpuMatND is effectively 2D. It differs from createGpuMatHeader() in that it clones a part of this GpuMatND. Read more
returns true iff the GpuMatND data is continuous (i.e. when there are no gaps between successive rows) Read more
returns true if the matrix is a sub-matrix of another matrix
returns element size in bytes
returns the size of element channel in bytes
returns true if data is null
returns true if not empty and points to external(user-allocated) gpu memory
returns pointer to the first byte of the GPU memory
returns the total number of array elements
returns the size of underlying memory in bytes
returns element type

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.