-
Deprecated MethodsMethodDescriptionbiopb.image.ImageData.pixels is deprecated. See biopb/image/image_data.proto;l=108biopb.image.ImageData.pixels is deprecated. See biopb/image/image_data.proto;l=108biopb.image.ImageData.pixels is deprecated. See biopb/image/image_data.proto;l=108biopb.image.ImageData.pixels is deprecated. See biopb/image/image_data.proto;l=108biopb.image.ImageData.pixels is deprecated. See biopb/image/image_data.proto;l=108biopb.image.ImageData.pixels is deprecated. See biopb/image/image_data.proto;l=108Use
Utils.deserializeImageData(ImageData)instead which handles both eager and lazy data representations.This method converts protobuf image data received via gRPC to imglib2 format. The returned interval is in imglib2's XYZC dimension order (dimension 0 = X, dimension 1 = Y, dimension 2 = Z, dimension 3 = C).
This is equivalent to calling
Utils._DeserializeToInterval(Pixels, String)with outputIndexOrder="XYZC".UseUtils.deserializeImageData(ImageData)instead which handles both eager and lazy data representations.This method converts protobuf image data received via gRPC to imglib2 format. The returned interval has the specified dimension order.
Supported data types (dtype):
- "f4" or "float32" - 32-bit float
- "f8" or "float64" - 64-bit float
- "u1" or "uint8" - 8-bit unsigned integer
- "u2" or "uint16" - 16-bit unsigned integer
- "u4" or "uint32" - 32-bit unsigned integer
- "i1" or "int8" - 8-bit signed integer
- "i2" or "int16" - 16-bit signed integer
- "i4" or "int32" - 32-bit signed integer
The outputIndexOrder specifies which dimensions to include in the output. Dimensions not in outputIndexOrder are squeezed (must be singleton).
Byte order (endianness) is read from the BinData field and applied correctly. Dtype prefixes like ">", "<", "|", "=" are automatically stripped for backward compatibility. Note that BinData.endianness is the authoritative source for endianness; a warning is logged if the dtype prefix conflicts with BinData.endianness.
UseUtils.serializeFromIntervalToImageData(RandomAccessibleInterval)instead to get ImageData protobuf which supports both eager and lazy data.This method converts imglib2 image data to a protobuf format suitable for gRPC transmission. The input interval is assumed to be in imglib2's XYZC dimension order (dimension 0 = X, dimension 1 = Y, dimension 2 = Z, dimension 3 = C).
The original data type is preserved. Big-endian byte order is used.
Dimension handling:
- 2D inputs (X, Y) are promoted to 4D by adding singleton Z and C dimensions
- 3D inputs (X, Y, Z) are promoted to 4D by adding a singleton C dimension
- 4D inputs (X, Y, Z, C) are used as-is
- 5D inputs (X, Y, Z, C, T) are used as-is
UseUtils.serializeFromIntervalToImageData(RandomAccessibleInterval)instead to get ImageData protobuf which supports both eager and lazy data.This method converts imglib2 image data to a protobuf format suitable for gRPC transmission. The input interval is assumed to be in imglib2's XYZC dimension order (dimension 0 = X, dimension 1 = Y, dimension 2 = Z, dimension 3 = C).
The original data type is preserved. Big-endian byte order is used.
The dimension_order string describes how bytes are laid out in memory:
- "XYZCT" - X varies fastest (Fortran/memory order), default for imglib2
- "CXYZT" - C varies fastest (C order), used by Python/numpy
Dimension handling:
- 2D inputs (X, Y) are promoted to 4D by adding singleton Z and C dimensions
- 3D inputs (X, Y, Z) are promoted to 4D by adding a singleton C dimension
- 4D inputs (X, Y, Z, C) are used as-is
- 5D inputs (X, Y, Z, C, T) are used as-is
UseUtils.serializeFromIntervalToImageData(RandomAccessibleInterval, java.util.List)instead to get ImageData protobuf which supports both eager and lazy data with dimension labels.This method converts imglib2 image data to a protobuf format suitable for gRPC transmission. The original data type is preserved.
Byte order (endianness) is always big-endian in the output.