|
| ~GpuMatND () |
| destructor
|
|
| GpuMatND () |
| default constructor
|
|
| GpuMatND (SizeArray size, int type) |
|
| GpuMatND (SizeArray size, int type, void *data, StepArray step=StepArray()) |
|
void | create (SizeArray size, int type) |
| 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.
|
|
void | release () |
|
void | swap (GpuMatND &m) noexcept |
|
GpuMatND | clone () const |
| 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.
|
|
GpuMatND | clone (Stream &stream) const |
|
GpuMatND | operator() (const std::vector< Range > &ranges) const |
| Extracts a sub-matrix. The operator makes a new header for the specified sub-array of *this. The operator is an O(1) operation, that is, no matrix data is copied. [詳解]
|
|
GpuMat | createGpuMatHeader (IndexArray idx, Range rowRange, Range colRange) const |
| Creates a GpuMat header for a 2D plane part of an n-dim matrix. [詳解]
|
|
GpuMat | createGpuMatHeader () const |
|
GpuMat | operator() (IndexArray idx, Range rowRange, Range colRange) const |
| Extracts a 2D plane part of an n-dim matrix. It differs from createGpuMatHeader(IndexArray, Range, Range) in that it clones a part of this GpuMatND to the returned GpuMat. [詳解]
|
|
| operator GpuMat () const |
| 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. [詳解]
|
|
| GpuMatND (const GpuMatND &)=default |
|
GpuMatND & | operator= (const GpuMatND &)=default |
|
| GpuMatND (GpuMatND &&) noexcept=default |
|
GpuMatND & | operator= (GpuMatND &&) noexcept=default |
|
void | upload (InputArray src) |
|
void | upload (InputArray src, Stream &stream) |
|
void | download (OutputArray dst) const |
|
void | download (OutputArray dst, Stream &stream) const |
|
bool | isContinuous () const |
|
bool | isSubmatrix () const |
| returns true if the matrix is a sub-matrix of another matrix
|
|
size_t | elemSize () const |
| returns element size in bytes
|
|
size_t | elemSize1 () const |
| returns the size of element channel in bytes
|
|
bool | empty () const |
| returns true if data is null
|
|
bool | external () const |
| returns true if not empty and points to external(user-allocated) gpu memory
|
|
uchar * | getDevicePtr () const |
| returns pointer to the first byte of the GPU memory
|
|
size_t | total () const |
| returns the total number of array elements
|
|
size_t | totalMemSize () const |
| returns the size of underlying memory in bytes
|
|
int | type () const |
| returns element type
|
|