3.25.0 (latest) 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Cloud Document AI v1 API class Document.Types.Page.Types.Matrix.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Document.Types.Page.Types.Matrix

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.md.txt)[Page](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.Page.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.Page.Types.md.txt)[Matrix](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.Page.Types.Matrix.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.md.txt)[Page](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.Page.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.Page.Types.md.txt)[Matrix](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.Page.Types.Matrix.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.md.txt)[Page](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.Page.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.Page.Types.md.txt)[Matrix](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.Page.Types.Matrix.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DocumentAI.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.md.txt)

## Assembly

Google.Cloud.DocumentAI.V1.dll

## Constructors

### Matrix()

    public Matrix()

### Matrix(Matrix)

    public Matrix(Document.Types.Page.Types.Matrix other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DocumentTypesPageTypesMatrix` |

## Properties

### Cols

    public int Cols { get; set; }

Number of columns in the matrix.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### Data

    public ByteString Data { get; set; }

The matrix data.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ByteString` |   |

### Rows

    public int Rows { get; set; }

Number of rows in the matrix.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### 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** ||
|---|---|
| **Type** | **Description** |
| `int` |   |