ImageIO.read#

ImageIO.read(file=None, fileFormat=None, byteOrder=None, dataType=None, arrayOrder=None, shape=None, memmap=False)#

Reads image file in em, mrc or raw data formats.

Parameters:
filestr, optional

File name.

fileFormat{‘em’, ‘mrc’, ‘raw’}, optional

The format of the file.

byteOrder{‘<’, ‘>’}, optional

Byte order: ‘<’ for little-endian and ‘>’ for big-endian.

dataTypestr, optional

Data type like ‘int8’, ‘int16’, etc.

arrayOrder{‘C’, ‘F’}, optional

Array order: ‘C’ for z-axis fastest, ‘F’ for x-axis fastest.

shapetuple, optional

Shape of the data in the format (x_dim, y_dim, z_dim).

memmapbool, optional

If True, data is read to a memory map.

Returns:
None
Raises:
FileTypeError

If the specified file format is not recognized.