CudaMem Class OpenCvSharp Class Library
CudaMem is limited cv::Mat with page locked memory allocation.
Inheritance Hierarchy

SystemObject
  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

public sealed class CudaMem : DisposableGpuObject, 
	ICloneable

The CudaMem type exposes the following members.

Constructors

  NameDescription
Public methodCudaMem
Creates empty CudaMem
Public methodCudaMem(IntPtr)
Creates from native cv::gpu::CudaMem* pointer
Public methodCudaMem(CudaMem)
Initializes a new instance of the CudaMem class
Public methodCudaMem(Size, MatType, CudaMemAllocType)
Initializes a new instance of the CudaMem class
Public methodCudaMem(Int32, Int32, MatType, CudaMemAllocType)
Initializes a new instance of the CudaMem class
Top
Properties

  NameDescription
Public propertyAllocType
Public propertyCols
the number of columns
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyData
pointer to the data
Public propertyDataEnd
helper fields used in locateROI and adjustROI
Public propertyDataStart
helper fields used in locateROI and adjustROI
Public propertyFlags
includes several bit-fields: 1.the magic signature 2.continuity flag 3.depth 4.number of channels
Public propertyHeight
the number of rows
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.)
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.)
Public propertyRefCount
pointer to the reference counter; when matrix points to user-allocated data, the pointer is NULL
Public propertyRows
the number of rows
Public propertyWidth
the number of columns
Top
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
Operators

  NameDescription
Public operatorStatic member(CudaMem to Mat)
returns matrix header with disabled reference counting for CudaMem data.
Public operatorStatic member(CudaMem to GpuMat)
maps host memory into device address space and returns GpuMat header for it. Throws exception if not supported by hardware.
Top
See Also

Reference