Interface Document.Page.MatrixOrBuilder (2.58.0)

public static interface Document.Page.MatrixOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCols()

public abstract int getCols()

Number of columns in the matrix.

int32 cols = 2;

Returns
Type Description
int

The cols.

getData()

public abstract ByteString getData()

The matrix data.

bytes data = 4;

Returns
Type Description
ByteString

The data.

getRows()

public abstract int getRows()

Number of rows in the matrix.

int32 rows = 1;

Returns
Type Description
int

The rows.

getType()

public abstract int getType()

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

int32 type = 3;

Returns
Type Description
int

The type.