colour.io.read_image_Imageio

colour.io.read_image_Imageio(path, bit_depth='float32', **kwargs)[source]

Reads the image at given path using Imageio.

Parameters
  • path (unicode) – Image path.

  • bit_depth (unicode, optional) – {‘float32’, ‘uint8’, ‘uint16’, ‘float16’}, Returned image bit depth, the image data is converted with colour.io.convert_bit_depth() definition after reading the image.

Other Parameters

**kwargs (dict, optional) – Keywords arguments.

Returns

Image as a ndarray.

Return type

ndarray

Notes

  • For convenience, single channel images are squeezed to 2d arrays.

Examples

>>> import os
>>> import colour
>>> path = os.path.join(colour.__path__[0], 'io', 'tests', 'resources',
...                     'CMS_Test_Pattern.exr')
>>> image = read_image_Imageio(path)
>>> image.shape  
(1267, 1274, 3)
>>> image.dtype
dtype('float32')