{ } Raw JSON

bundles / skimage latest / skimage / io / _io / imread

function

skimage.io._io:imread

source: /dev/scikit-image/src/skimage/io/_io.py :28

Signature

def   imread ( fname as_gray = False plugin = <DEPRECATED> ** plugin_args )

Summary

Load an image from file.

Parameters

fname : str or pathlib.Path

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

as_gray : bool, 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_array : ndarray

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_args : DEPRECATED

The plugin infrastructure is deprecated.

plugin : DEPRECATED

plugin is deprecated.

Aliases

  • skimage.io.imread

Referenced by