TiffSequence
-
class skimage.external.tifffile.TiffSequence(files, imread=, pattern='axes', *args, **kwargs)
[source] -
Bases:
object
Sequence of image files.
The data shape and dtype of all files must match.
Examples
>>> tifs = TiffSequence("test.oif.files/*.tif") >>> tifs.shape, tifs.axes ((2, 100), 'CT') >>> data = tifs.asarray() >>> data.shape (2, 100, 256, 256)
Attributes
files (list) List of file names. shape (tuple) Shape of image sequence. axes (str) Labels of axes in shape. -
__init__(files, imread=, pattern='axes', *args, **kwargs)
[source] -
Initialize instance from multiple files.
Parameters: files : str, or sequence of str
Glob pattern or sequence of file names.
imread : function or class
Image read function or class with asarray function returning numpy array from single file.
pattern : str
Regular expression pattern that matches axes names and sequence indices in file names. By default this matches Olympus OIF and Leica TIFF series.
-
exception ParseError
[source] -
Bases:
exceptions.Exception
-
TiffSequence.asarray(memmap=False, *args, **kwargs)
[source] -
Read image data from all files and return as single numpy array.
If memmap is True, return an array stored in a binary file on disk. The args and kwargs parameters are passed to the imread function.
Raise IndexError or ValueError if image shapes don’t match.
-
TiffSequence.close()
[source]
-
Please login to continue.