Click or drag to resize

Mat Properties

The Mat type exposes the following members.

Public propertyBitmap
The Get property provide a more efficient way to convert gray scale Mat of Byte, 3 channel Mat of Byte (assuming BGR color space) or 4 channel Mat of Byte (assuming Bgra color space) 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 Mat object is disposed The Set property convert the bitmap to this Image type.
Public propertyCols
The number of columns
Public propertyData
Get the managed data used by the Mat
(Inherited from MatDataAllocator.)
Public propertyDataPointer
Pointer to the beginning of the raw data
Public propertyDepth
Depth type
Public propertyDims
The matrix dimensionality
Public propertyElementSize
The size of the elements in this matrix
Public propertyHeight
Get the height of the mat.
Public propertyIsContinuous
True if the data is continues
Public propertyIsEmpty
True if the Mat 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 propertySizeOfDimension
Get an array of the size of the dimensions. e.g. if the mat is 9x10x11, the array of {9, 10, 11} will be returned.
Public propertyStep
Public propertyTotal
The method returns the number of array elements (a number of pixels if the array represents an image)
Public propertyWidth
Get the width of the mat
See Also