Reading images#

imread() is the unified entry point. It reads paths (a file, a folder, a list of files) and the bytes of an image file; for paths it dispatches on the file extension to a format-specific reader (also scalar grids in CSV format). It returns an Image; a folder or a sequence of paths gives one space-time image. Physical dimensions, acquisition time and correction objects can be supplied as keyword arguments and are applied while reading.

imread(path, **kwargs)

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

Format-specific readers#

imread_from_optical(path[, time, ...])

Reading functionality from jpg, png, tif format to optical images.

imread_from_dicom(path[, dim, transformations])

Initialization of Image by reading from DICOM format.

imread_from_vtu(path, key, shape, **kwargs)

Read data with meshio and map it onto a pixel grid.

imread_from_numpy(path, **kwargs)

Converter from npy format to darsia.Image.

imread_from_npz(path[, transformations])

Converter from npz format to darsia.Image.

imread_from_bytes(data[, transformations, ...])

Initialization of Image by reading from the bytes of an image file.

exif_date(source)

Date of an image file from its EXIF data (tag 306, DateTime).