Class Matrix (2.1.0)

Matrix(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.


rows int
Number of rows in the matrix.
cols int
Number of columns in the matrix.
type_ int
This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to
data bytes
The matrix data.