Reading images#

imread() is the unified entry point. It dispatches on the file extension to a format-specific reader and returns an Image (or a list of images when given a folder or a sequence of paths). Physical dimensions, acquisition time and correction objects can be supplied as keyword arguments and are applied while reading.

imread(path, **kwargs)

Determine and call reading routine depending on filetype.

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 byte string.