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 TypeMethodDescriptionPixel valuesPixel valuesgetDimLabels(int index) A list of strings describing the dimension order of the pixel data e.g.com.google.protobuf.ByteStringgetDimLabelsBytes(int index) A list of strings describing the dimension order of the pixel data e.g.intA 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.intgetDims(int index) A list of Dimensional size of pixel data array, e.g.intA list of Dimensional size of pixel data array, e.g.A list of Dimensional size of pixel data array, e.g.getDtype()A string describing the data type using numpy's convention.com.google.protobuf.ByteStringA string describing the data type using numpy's convention.booleanPixel valuesMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods 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
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
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
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.
-