ptypy.io.imageIO.imread#
- ptypy.io.imageIO.imread(filename, doglob=None, roi=None)#
- d,meta = imread(filename)
reads array in image file and returns it as a numpy array, along with metadata (from header). d and meta are lists if filename is a list of file names.
- … = imread(filename, doglob=True)
reads all matching files if filename contains unix-style wildcards, and returns lists.
- … = imread(filename, doglob=False)
ignores wildcards
- … = imread(filename, doglob=None) [default]
behaves like doglob=True, except that it returns a list only if filename contains wildcards, while doglob=True always returns a list, even if there is only one match.
- … = imread(filename, roi=(RowFrom, RowTo, ColumnFrom, ColumnTo))
returns a region of interest (applied on all files if gobbing or if filename is a list)