UMat Properties |
The UMat type exposes the following members.
Name | Description | |
---|---|---|
![]() | Bitmap |
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.
|
![]() | Bytes |
Get or Set the raw image data
|
![]() | Cols |
The number of columns
|
![]() | Data |
Get the managed data used by the Mat
(Inherited from MatDataAllocator.) |
![]() | Depth |
Depth type
|
![]() | Dims |
The matrix dimensionality
|
![]() | ElementSize |
The size of the elements in this matrix
|
![]() | IsContinuous |
True if the data is continues
|
![]() | IsEmpty |
True if the matrix 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
|
![]() | Total |
The method returns the number of array elements (a number of pixels if the array represents an image)
|