imageio.core.v3_plugin_api.ImageProperties#

class imageio.core.v3_plugin_api.ImageProperties(shape: Tuple[int, ...], dtype: numpy.dtype, is_batch: bool = False, spacing: Optional[tuple] = None)#

Standardized Metadata

ImageProperties represent a set of standardized metadata that is available under the same name for every supported format. If the ImageResource (or format) does not specify the value, a sensible default value is chosen instead.

Attributes
shapeTuple[int, …]

The shape of the loaded ndimage.

dtypenp.dtype

The dtype of the loaded ndimage.

is_batchbool

If True, the first dimension of the ndimage represents a batch dimension along which several images are stacked.

spacingTuple

A tuple describing the spacing between pixels along each axis of the ndimage. If the spacing is uniform along an axis the value corresponding to that axis is a single float. If the spacing is non-uniform, the value corresponding to that axis is a tuple in which the i-th element indicates the spacing between the i-th and (i+1)-th pixel along that axis.

Methods

Attribute and Method Details

is_batch: bool = False#
spacing: Optional[tuple] = None#
shape: Tuple[int, ...]#
dtype: numpy.dtype#