CudaMem is limited cv::Mat with page locked memory allocation.
Inheritance Hierarchy
OpenCvSharpDisposableObject
OpenCvSharpDisposableCvObject
OpenCvSharp.CPlusPlus.GpuDisposableGpuObject
OpenCvSharp.CPlusPlus.GpuCudaMem
Namespace: OpenCvSharp.CPlusPlus.Gpu
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The CudaMem type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CudaMem |
Creates empty CudaMem
| |
CudaMem(IntPtr) |
Creates from native cv::gpu::CudaMem* pointer
| |
CudaMem(CudaMem) | Initializes a new instance of the CudaMem class | |
CudaMem(Size, MatType, CudaMemAllocType) | Initializes a new instance of the CudaMem class | |
CudaMem(Int32, Int32, MatType, CudaMemAllocType) | Initializes a new instance of the CudaMem class |
Properties
Name | Description | |
---|---|---|
AllocType | ||
Cols |
the number of columns
| |
CvPtr |
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.) | |
Data |
pointer to the data
| |
DataEnd |
helper fields used in locateROI and adjustROI
| |
DataStart |
helper fields used in locateROI and adjustROI
| |
Flags |
includes several bit-fields:
1.the magic signature
2.continuity flag
3.depth
4.number of channels
| |
Height |
the number of rows
| |
IsDisposed |
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.) | |
IsEnabledDispose |
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.) | |
RefCount |
pointer to the reference counter;
when matrix points to user-allocated data, the pointer is NULL
| |
Rows |
the number of rows
| |
Width |
the number of columns
|
Methods
Name | Description | |
---|---|---|
AssignTo | ||
CanMapHostMemory |
returns if host memory can be mapperd to gpu address space;
| |
Channels |
Returns the number of matrix channels.
| |
Clone |
returns deep copy of the matrix, i.e. the data is copied
| |
Create |
allocates new matrix data unless the matrix already has specified size and type.
| |
CreateGpuMatHeader |
maps host memory into device address space and returns GpuMat header for it. Throws exception if not supported by hardware.
| |
CreateMatHeader |
returns matrix header with disabled reference counting for CudaMem data.
| |
Depth |
Returns the depth of a matrix element.
| |
Dispose |
Releases the resources
(Inherited from DisposableObject.) | |
ElemSize |
Returns the matrix element size in bytes.
| |
ElemSize1 |
Returns the size of each matrix element channel in bytes.
| |
Empty |
returns true if GpuMatrix data is NULL
| |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IsContinuous |
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)
| |
Release |
Clean up any resources being used.
| |
Size |
Returns a matrix size.
| |
Step |
a distance between successive rows in bytes; includes the gap if any
| |
Step1 |
Returns a normalized step.
| |
ThrowIfDisposed |
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.) | |
ToString | (Inherited from Object.) | |
Type |
Returns the type of a matrix element.
|
Operators
Name | Description | |
---|---|---|
(CudaMem to Mat) |
returns matrix header with disabled reference counting for CudaMem data.
| |
(CudaMem to GpuMat) |
maps host memory into device address space and returns GpuMat header for it.
Throws exception if not supported by hardware.
|
See Also