Package biopb.image

Interface TensorOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Tensor, Tensor.Builder

public interface TensorOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Pixel values
    Pixel values
    getDimLabels(int index)
    A list of strings describing the dimension order of the pixel data e.g.
    com.google.protobuf.ByteString
    getDimLabelsBytes(int index)
    A list of strings describing the dimension order of the pixel data e.g.
    int
    A list of strings describing the dimension order of the pixel data e.g.
    A list of strings describing the dimension order of the pixel data e.g.
    int
    getDims(int index)
    A list of Dimensional size of pixel data array, e.g.
    int
    A list of Dimensional size of pixel data array, e.g.
    A list of Dimensional size of pixel data array, e.g.
    A string describing the data type using numpy's convention.
    com.google.protobuf.ByteString
    A string describing the data type using numpy's convention.
    boolean
    Pixel values

    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 Details

    • hasBindata

      boolean hasBindata()
       Pixel values
       
      .biopb.image.BinData bindata = 1;
      Returns:
      Whether the bindata field is set.
    • getBindata

      BinData getBindata()
       Pixel values
       
      .biopb.image.BinData bindata = 1;
      Returns:
      The bindata.
    • getBindataOrBuilder

      BinDataOrBuilder getBindataOrBuilder()
       Pixel values
       
      .biopb.image.BinData bindata = 1;
    • getDtype

      String getDtype()
       A string describing the data type using numpy's convention. E.g., 'i8'
       represent int64. Endianness indicator, e.g. '=i8', is allowed but will be
       ignored. Instead the endianness will be determined by the field within
       the Bindata structure.
       
      string dtype = 2;
      Returns:
      The dtype.
    • getDtypeBytes

      com.google.protobuf.ByteString getDtypeBytes()
       A string describing the data type using numpy's convention. E.g., 'i8'
       represent int64. Endianness indicator, e.g. '=i8', is allowed but will be
       ignored. Instead the endianness will be determined by the field within
       the Bindata structure.
       
      string dtype = 2;
      Returns:
      The bytes for dtype.
    • getDimsList

      List<Integer> getDimsList()
       A list of Dimensional size of pixel data array, e.g. [10, 5, 512, 512, 3]
       
      repeated uint32 dims = 3;
      Returns:
      A list containing the dims.
    • getDimsCount

      int getDimsCount()
       A list of Dimensional size of pixel data array, e.g. [10, 5, 512, 512, 3]
       
      repeated uint32 dims = 3;
      Returns:
      The count of dims.
    • getDims

      int getDims(int index)
       A list of Dimensional size of pixel data array, e.g. [10, 5, 512, 512, 3]
       
      repeated uint32 dims = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The dims at the given index.
    • getDimLabelsList

      List<String> getDimLabelsList()
       A list of strings describing the dimension order of the pixel data
       e.g. ['T', 'Z', 'Y', 'X', 'C']. The order of the list specifies the
       order of dimensions in the bindata.
       
      repeated string dim_labels = 4;
      Returns:
      A list containing the dimLabels.
    • getDimLabelsCount

      int getDimLabelsCount()
       A list of strings describing the dimension order of the pixel data
       e.g. ['T', 'Z', 'Y', 'X', 'C']. The order of the list specifies the
       order of dimensions in the bindata.
       
      repeated string dim_labels = 4;
      Returns:
      The count of dimLabels.
    • getDimLabels

      String getDimLabels(int index)
       A list of strings describing the dimension order of the pixel data
       e.g. ['T', 'Z', 'Y', 'X', 'C']. The order of the list specifies the
       order of dimensions in the bindata.
       
      repeated string dim_labels = 4;
      Parameters:
      index - The index of the element to return.
      Returns:
      The dimLabels at the given index.
    • getDimLabelsBytes

      com.google.protobuf.ByteString getDimLabelsBytes(int index)
       A list of strings describing the dimension order of the pixel data
       e.g. ['T', 'Z', 'Y', 'X', 'C']. The order of the list specifies the
       order of dimensions in the bindata.
       
      repeated string dim_labels = 4;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dimLabels at the given index.