- TifffilePlugin.read(*, index: Optional[int] = None, page: Optional[int] = None, **kwargs) ndarray [source]#
Read a ndimage or page.
The ndimage returned depends on the value of both
indexselects the series to read and
pageallows selecting a single page from the selected series. If
pageis understood as a flat index, i.e., the selection ignores individual series inside the file. If both
None, then all the series are read and returned as a batch.
int, select the ndimage (series) located at that index inside the file and return
pagefrom it. If
intread the page located at that (flat) index inside the file. If
page=None, read all ndimages from the file and return them as a batch.
Nonereturn the full selected ndimage. If
int, read the page at the selected index and return it.
Additional kwargs are forwarded to TiffFile’s
The decoded ndimage or page.