skimage 0.17.2

NotesOther ParametersParameters
imsave(fname, arr, plugin=None, check_contrast=True, **plugin_args)

Notes

When saving a JPEG, the compression ratio may be controlled using the quality keyword argument which is an integer with values in [1, 100] where 1 is worst quality and smallest file size, and 100 is best quality and largest file size (default 75). This is only available when using the PIL and imageio plugins.

Other Parameters

plugin_args : keywords

Passed to the given plugin.

Parameters

fname : str

Target filename.

arr : ndarray of shape (M,N) or (M,N,3) or (M,N,4)

Image data.

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.

check_contrast : bool, optional

Check for low contrast and print warning (default: True).

Save an image to 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#96
type: <class 'function'>
Commit: