Method GetDataSize
GetDataSize(Mat)
Gets the total data size in bytes of the given Mat object, considering any byte alignment.
Declaration
public static int GetDataSize(this Mat mat)
Parameters
| Type | Name | Description |
|---|---|---|
| Mat | mat | The Mat object for which the data size is calculated. |
Returns
| Type | Description |
|---|---|
| int | The total data size in bytes of the given Mat object, considering any byte alignment. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when the calculated aligned size is smaller than the unaligned size. |