Click or drag to resize
UMat Class
The equivalent of cv::Mat, should only be used if you know what you are doing. In most case you should use the Matrix class instead
Inheritance Hierarchy

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

The UMat type exposes the following members.

Public methodUMat
Create an empty cv::UMat
Public methodUMat(SerializationInfo, StreamingContext)
Constructor used to deserialize runtime serialized object
Public methodUMat(String, ImreadModes)
Read a UMat from file.
Public methodUMat(UMat, Rectangle)
Get the Umat header for the specific roi of the parent
Public methodUMat(UMat, Range, Range)
Create a umat header for the specific ROI
Public methodUMat(Size, DepthType, Int32, UMatUsage)
Create a umat of the specific type.
Public methodUMat(Int32, Int32, DepthType, Int32, UMatUsage)
Create a umat of the specific type.
Public propertyBitmap
The Get property provide a more efficient way to convert Image<Gray, Byte>, Image<Bgr, Byte> and Image<Bgra, Byte> into Bitmap such that the image data is shared with Bitmap. If you change the pixel value on the Bitmap, you change the pixel values on the Image object as well! For other types of image this property has the same effect as ToBitmap() Take extra caution not to use the Bitmap after the Image object is disposed The Set property convert the bitmap to this Image type.
Public propertyBytes
Get or Set the raw image data
Public propertyCols
The number of columns
Public propertyData
Get the managed data used by the Mat
(Inherited from MatDataAllocator.)
Public propertyDepth
Depth type
Public propertyDims
The matrix dimensionality
Public propertyElementSize
The size of the elements in this matrix
Public propertyIsContinuous
True if the data is continues
Public propertyIsEmpty
True if the matrix is empty
Public propertyIsSubmatrix
True if the matrix is a submatrix of another matrix
Public propertyNumberOfChannels
Number of channels
Public propertyPtr
Pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Public propertyRows
The number of rows
Public propertySize
The size of this matrix
Public propertyTotal
The method returns the number of array elements (a number of pixels if the array represents an image)
Public methodClone
Make a clone of the current UMat.
Public methodCol
Creates a matrix header for the specified matrix column.
Public methodConvertTo
Converts an array to another data type with optional scaling.
Public methodCopyTo(IOutputArray, IInputArray)
Copy the data in this umat to the other mat
Public methodCopyToT(T)
Copy data from this Mat to the managed array
Public methodCreate
Allocates new array data if needed.
Protected methodDeserializeObjectData
A function used for runtime deserailization of the object
Public methodDispose
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)
Protected methodDisposeObject
Release all the unmanaged memory associated with this object.
(Overrides MatDataAllocatorDisposeObject.)
Public methodDot
Computes the dot product of two mats
Public methodEquals(Object) (Inherited from Object.)
Public methodEquals(UMat)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
(Inherited from DisposableObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetInputArray
Pointer to the InputArray
Public methodGetInputOutputArray
Pointer to the InputOutputArray
Public methodGetMat
Return the Mat representation of the UMat
Public methodGetObjectData
A function used for runtime serialization of the object
Public methodGetOutputArray
Pointer to the OutputArray
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
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 the shape and/or the number of channels of a 2D matrix without copying the data.
Public methodRow
Creates a matrix header for the specified matrix row.
Public methodSave
Save this image to the specific file.
Public methodSetTo(IInputArray, IInputArray)
Sets all or some of the array elements to the specified value.
Public methodSetTo(MCvScalar, IInputArray)
Sets all or some of the array elements to the specified value.
Public methodSetToT(T)
Copy data from managed array to this Mat
Public methodSplit
Split current Image into an array of gray scale images where each element in the array represent a single color channel of the original image
Public methodToImageTColor, TDepth
Convert this Mat to Image
Public methodToString (Inherited from Object.)
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