Class Document.Types.Page.Types.Matrix (1.2.0)

public sealed class Matrix : IMessage<Document.Types.Page.Types.Matrix>, IEquatable<Document.Types.Page.Types.Matrix>, IDeepCloneable<Document.Types.Page.Types.Matrix>, IBufferMessage, IMessage

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

Inheritance

Object > Document.Types.Page.Types.Matrix

Namespace

Google.Cloud.DocumentAI.V1

Assembly

Google.Cloud.DocumentAI.V1.dll

Constructors

Matrix()

public Matrix()

Matrix(Document.Types.Page.Types.Matrix)

public Matrix(Document.Types.Page.Types.Matrix other)
Parameter
NameDescription
otherDocument.Types.Page.Types.Matrix

Properties

Cols

public int Cols { get; set; }

Number of columns in the matrix.

Property Value
TypeDescription
Int32

Data

public ByteString Data { get; set; }

The matrix data.

Property Value
TypeDescription
ByteString

Rows

public int Rows { get; set; }

Number of rows in the matrix.

Property Value
TypeDescription
Int32

Type

public int Type { get; set; }

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 https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html

Property Value
TypeDescription
Int32