skued.diffread

skued.diffread(fname)

Load an image from a file. Supported file formats are:

  • Merlin Image Binary (*.mib)

  • Digital Micrograph (*.dm3, *.dm4)

    New in version 1.0.1.0.

  • TIFF (*.tif, *.tiff)

  • NumPy (*.npy)

  • All file formats supported by Scikit-image

Parameters:

fname (path-like) – Image file name.

Returns:

img_array – Diffraction image. Color images are flattened to grayscale.

Return type:

~numpy.ndarray, ndim 2

See also

skimage.io.imread

load images from files

skued.mibread

Read single- and multi-image Merlin Image Binary files