darsia.imread#

imread(path, **kwargs)[source]#

Read an image: the single entry for all sources and file types.

The reader is chosen by the type of the source (the bytes of an image file, or paths) and, for paths, by the file type (suffix, lower case; suffix overrides it). See the module docstring for the supported file types and the dates.

Parameters:
pathstr, Path, list of such, or bytes

Path of a file, of a folder (all its files, sorted), a list of paths (a series), or the bytes of an image file (e.g. received over a network).

**kwargs

Keyword arguments tailored to the file type, e.g. transformations, date, native for optical images.

Returns:
Image

The image; a series (space-time image) for several files.