StoredShape

class tifffile.StoredShape(frames=1, separate_samples=1, depth=1, length=1, width=1, contig_samples=1, extrasamples=0)

Normalized shape of image array in TIFF pages.

Parameters:
  • frames (int) – Number of TIFF pages.

  • separate_samples (int) – Number of separate samples.

  • depth (int) – Image depth.

  • length (int) – Image length (height).

  • width (int) – Image width.

  • contig_samples (int) – Number of contiguous samples.

  • extrasamples (int) – Number of extra samples.

property is_planar: bool

Shape contains planar samples.

property is_valid: bool

Shape is valid.

property page_shape: tuple[int, int, int, int, int]

Normalized 5D shape of image array in single page.

property page_size: int

Product of dimensions in single page.

property photometric_samples: int

Number of photometric samples.

property planarconfig: int | None

Value of PlanarConfiguration tag.

property samples: int

Number of samples. Count of SamplesPerPixel tag.

property shape: tuple[int, int, int, int, int, int]

Normalized 6D shape of image array in all pages.

property size: int

Product of all dimensions.

property squeezed: tuple[int, ...]

Shape with length-1 removed, except for length and width.