skimage 0.17.2

Other ParametersParametersReturns
imread(fname, as_gray=False, plugin=None, **plugin_args)

Other Parameters

plugin_args : keywords

Passed to the given plugin.

Parameters

fname : string

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.

plugin : str, optional

Name of plugin to use. By default, the different plugins are tried (starting with imageio) 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 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.

Load an image from file.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/io/_io.py#14
type: <class 'function'>
Commit: