CudaMem Methods OpenCvSharp Class Library

The CudaMem type exposes the following members.

Methods

  NameDescription
Public methodAssignTo
Public methodStatic memberCanMapHostMemory
returns if host memory can be mapperd to gpu address space;
Public methodChannels
Returns the number of matrix channels.
Public methodClone
returns deep copy of the matrix, i.e. the data is copied
Public methodCreate
allocates new matrix data unless the matrix already has specified size and type.
Public methodCreateGpuMatHeader
maps host memory into device address space and returns GpuMat header for it. Throws exception if not supported by hardware.
Public methodCreateMatHeader
returns matrix header with disabled reference counting for CudaMem data.
Public methodDepth
Returns the depth of a matrix element.
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Public methodElemSize
Returns the matrix element size in bytes.
Public methodElemSize1
Returns the size of each matrix element channel in bytes.
Public methodEmpty
returns true if GpuMatrix data is NULL
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIsContinuous
returns true iff the GpuMatrix data is continuous (i.e. when there are no gaps between successive rows). similar to CV_IS_GpuMat_CONT(cvGpuMat->type)
Public methodRelease
Clean up any resources being used.
Public methodSize
Returns a matrix size.
Public methodStep
a distance between successive rows in bytes; includes the gap if any
Public methodStep1
Returns a normalized step.
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToString (Inherited from Object.)
Public methodType
Returns the type of a matrix element.
Top
See Also

Reference