imread
-
skimage.data.imread(fname, as_grey=False, plugin=None, flatten=None, **plugin_args)
[source] -
Load an image from file.
Parameters: fname : string
Image file name, e.g.
test.jpg
or URL.as_grey : bool
If True, convert color images to grey-scale (32-bit floats). Images that are already in grey-scale format are not converted.
plugin : str
Name of plugin to use. By default, the different plugins are tried (starting with the Python Imaging Library) until a suitable candidate is found. If not given and fname is a tiff file, the tifffile plugin will be used.
Returns: img_array : ndarray
The different colour bands/channels are stored in the third dimension, such that a grey-image is MxN, an RGB-image MxNx3 and an RGBA-image MxNx4.
Other Parameters: plugin_args : keywords
Passed to the given plugin.
Please login to continue.