imread

imread

skimage.external.tifffile.imread(files, **kwargs) [source]

Return image data from TIFF file(s) as numpy array.

The first image series is returned if no arguments are provided.

Parameters:

files : str or list

File name, glob pattern, or list of file names.

key : int, slice, or sequence of page indices

Defines which pages to return as array.

series : int

Defines which series of pages in file to return as array.

multifile : bool

If True (default), OME-TIFF data may include pages from multiple files.

pattern : str

Regular expression pattern that matches axes names and indices in file names.

kwargs : dict

Additional parameters passed to the TiffFile or TiffSequence asarray function.

Examples

>>> im = imread('test.tif', key=0)  
>>> im.shape  
(256, 256, 4)
>>> ims = imread(['test.tif', 'test.tif'])  
>>> ims.shape  
(2, 256, 256, 4)
doc_scikit_image
2017-01-12 17:21:32
Comments
Leave a Comment

Please login to continue.