Tiff#

class mesmerize_core.arrays.LazyTiff(path, shape=None)#

Lazy reader for tiff files. WIP, works for some tiff files. Try tifffile.memmap first before trying LazyTiff

Parameters:
  • path (str or Path) – path to tiff file

  • shape (Tuple[int]) – manually set shape

property dtype: str#

str data type

property shape: Tuple[int, int, int]#

Tuple[int] (n_frames, dims_x, dims_y)

property n_frames: int#

int number of frames

property min: float#

float min value of the array if it were fully computed

property max: float#

float max value of the array if it were fully computed

as_numpy()#

NOT RECOMMENDED, THIS COULD BE EXTREMELY LARGE. Converts to a standard numpy array in RAM.

Return type:

np.ndarray

property nbytes: int#

int number of bytes for the array if it were fully computed

property nbytes_gb: float#

float number of gigabytes for the array if it were fully computed

property ndim: int#

int Number of dimensions