Mat Properties |
The Mat type exposes the following members.
Name | Description | |
---|---|---|
![]() | Bitmap |
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.
|
![]() | Cols |
The number of columns
|
![]() | Data |
Get the managed data used by the Mat
(Inherited from MatDataAllocator.) |
![]() | DataPointer |
Pointer to the beginning of the raw data
|
![]() | Depth |
Depth type
|
![]() | Dims |
The matrix dimensionality
|
![]() | ElementSize |
The size of the elements in this matrix
|
![]() | Height |
Get the height of the mat.
|
![]() | IsContinuous |
True if the data is continues
|
![]() | IsEmpty |
True if the Mat is empty
|
![]() | IsSubmatrix |
True if the matrix is a submatrix of another matrix
|
![]() | NumberOfChannels |
Number of channels
|
![]() | Ptr |
Pointer to the unmanaged object
(Inherited from UnmanagedObject.) |
![]() | Rows |
The number of rows
|
![]() | Size |
The size of this matrix
|
![]() | SizeOfDimension |
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.
|
![]() | Step |
Step
|
![]() | Total |
The method returns the number of array elements (a number of pixels if the array represents an image)
|
![]() | Width |
Get the width of the mat
|