- uri : {str, pathlib.Path, bytes, file}
The resource to load the image from, e.g. a filename, pathlib.Path,
http address or file object, see the docs for more info.
- index : {int, Ellipsis, None}
If the ImageResource contains multiple ndimages, and index is an
integer, select the index-th ndimage from among them and return it. If
index is an ellipsis (…), read all ndimages in the file and stack them
along a new batch dimension. If index is None, let the plugin decide.
- plugin : {str, None}
The plugin to use. If set to None (default) imread will perform a
search for a matching plugin. If not None, this takes priority over
the provided format hint (if present).
- extension : str
If not None, treat the provided ImageResource as if it had the given
extension. This affects the order in which backends are considered.
- format_hint : str
Deprecated. Use extension instead.
- **kwargs
Additional keyword arguments will be passed to the plugin’s read call.