Click or drag to resize
GpuMat Class
A GpuMat, use the generic version if possible. The non generic version is good for use as buffer in stream calls.
Inheritance Hierarchy

Namespace: Emgu.CV.Cuda
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public class GpuMat : UnmanagedObject, IEquatable<GpuMat>, 
	IImage, IDisposable, ICloneable, IInputOutputArray, IInputArrayOfArrays, 
	IOutputArrayOfArrays, IOutputArray, IInputArray

The GpuMat type exposes the following members.

Public methodGpuMat
Create an empty GpuMat
Public methodGpuMat(IInputArray)
Create a GpuMat from an CvArray of the same depth type
Public methodGpuMat(GpuMat, Range, Range)
Create a GpuMat from the specific region of mat. The data is shared between the two GpuMat
Public methodGpuMat(Int32, Int32, DepthType, Int32, Boolean)
Create a GpuMat of the specified size
Public propertyBitmap
Get the Bitmap from this GpuMat
Public propertyDepth
Depth type
Public propertyIsContinuous
True if the data is continues
Public propertyIsEmpty
True if the matrix is empty
Public propertyNumberOfChannels
Number of channels
Public propertyPtr
Pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Public propertySize
Get the GpuMat size: width == number of columns, height == number of rows
Public propertyType
Get the type of the GpuMat
Public methodClone
Make a clone of the GpuMat
Public methodCol
Returns a GpuMat corresponding to the ith column of the GpuMat. The data is shared with the current GpuMat.
Public methodColRange
Returns a GpuMat corresponding to the [startend) columns of the GpuMat. The data is shared with the current GpuMat.
Public methodConvertTo
This function has several different purposes and thus has several synonyms. It copies one GpuMat to another with optional scaling, which is performed first, and/or optional type conversion, performed after: dst(I)=src(I)*scale + (shift,shift,...) All the channels of multi-channel GpuMats are processed independently. The type conversion is done with rounding and saturation, that is if a result of scaling + conversion can not be represented exactly by a value of destination GpuMat element type, it is set to the nearest representable value on the real axis. In case of scale=1, shift=0 no prescaling is done. This is a specially optimized case and it has the appropriate convertTo synonym.
Public methodCopyTo
Copy the source GpuMat to destination GpuMat, using an optional mask.
Public methodCreate
allocates new GpuMat data unless the GpuMat already has specified size and type
Public methodDispose
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)
Protected methodDisposeObject
Release the unmanaged memory associated with this GpuMat
(Overrides DisposableObjectDisposeObject.)
Public methodDownload
Downloads data from device to host memory.
Public methodEquals(Object) (Inherited from Object.)
Public methodEquals(GpuMat)
Returns true if the two GpuMat equals
Protected methodFinalize
(Inherited from DisposableObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetInputArray
Pointer to the InputArray
Public methodGetInputOutputArray
Pointer to the InputOutputArray
Public methodGetOutputArray
Pointer to the OutputArray
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMergeFrom
Makes multi-channel array out of several single-channel arrays
Public methodMinMax
Returns the min / max location and values for the image
Protected methodReleaseManagedResources
Release the managed resources. This function will be called during the disposal of the current object. override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.)
Public methodReshape
Changes shape of GpuMat without copying data.
Public methodRow
Returns a GpuMat corresponding to the ith row of the GpuMat. The data is shared with the current GpuMat.
Public methodRowRange
Returns a GpuMat corresponding to the [startend) rows of the GpuMat. The data is shared with the current GpuMat.
Public methodSave
Save the GpuMat to a file
Public methodSetTo
Copies scalar value to every selected element of the destination GpuMat: arr(I)=value if mask(I)!=0
Public methodSplit
Split current GpuMat into an array of single channel GpuMat where each element in the array represent a single channel of the original GpuMat
Public methodToMat
Convert the GpuMat to Mat
Public methodToString (Inherited from Object.)
Public methodUpload
Upload data to GpuMat
Protected field_ptr
A pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Extension Methods
Public Extension MethodIsUmat
Determines whether the specified input array is umat.
(Defined by IInputArrayExtensions.)
See Also