skimage2.io.imread#

skimage2.io.imread(fname, as_gray=False, plugin=<DEPRECATED>, **plugin_args)[source]#

Load an image from file.

Parameters:
fnamestr or pathlib.Path

Image file name, e.g. test.jpg or URL.

as_graybool, optional

If True, convert color images to gray-scale (64-bit floats). Images that are already in gray-scale format are not converted.

Returns:
img_arrayndarray

The different color bands/channels are stored in the third dimension, such that a gray-image is MxN, an RGB-image MxNx3 and an RGBA-image MxNx4.

Other Parameters:
plugin_argsDEPRECATED

The plugin infrastructure is deprecated.

pluginDEPRECATED

plugin is deprecated.

Deprecated since version 0.25.