Interface Document.Page.MatrixOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Document.Page.Matrix, Document.Page.Matrix.Builder
    Enclosing class:
    Document.Page

    public static interface Document.Page.MatrixOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getCols()
      Number of columns in the matrix.
      com.google.protobuf.ByteString getData()
      The matrix data.
      int getRows()
      Number of rows in the matrix.
      int getType()
      This encodes information about what data type the matrix uses.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getRows

        int getRows()
         Number of rows in the matrix.
         
        int32 rows = 1;
        Returns:
        The rows.
      • getCols

        int getCols()
         Number of columns in the matrix.
         
        int32 cols = 2;
        Returns:
        The cols.
      • getType

        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:
        The type.
      • getData

        com.google.protobuf.ByteString getData()
         The matrix data.
         
        bytes data = 4;
        Returns:
        The data.