"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "skimage/io/_io.py" between
scikit-image-0.19.2.tar.gz and scikit-image-0.19.3.tar.gz

About: scikit-image is a collection of algorithms for image processing in Python.

_io.py  (scikit-image-0.19.2):_io.py  (scikit-image-0.19.3)
skipping to change at line 19 skipping to change at line 19
from .util import file_or_url_context from .util import file_or_url_context
__all__ = ['imread', 'imsave', 'imshow', 'show', __all__ = ['imread', 'imsave', 'imshow', 'show',
'imread_collection', 'imshow_collection'] 'imread_collection', 'imshow_collection']
def imread(fname, as_gray=False, plugin=None, **plugin_args): def imread(fname, as_gray=False, plugin=None, **plugin_args):
"""Load an image from file. """Load an image from file.
Parameters Parameters
---------- ----------
fname : string fname : str or pathlib.Path
Image file name, e.g. ``test.jpg`` or URL. Image file name, e.g. ``test.jpg`` or URL.
as_gray : bool, optional as_gray : bool, optional
If True, convert color images to gray-scale (64-bit floats). If True, convert color images to gray-scale (64-bit floats).
Images that are already in gray-scale format are not converted. Images that are already in gray-scale format are not converted.
plugin : str, optional plugin : str, optional
Name of plugin to use. By default, the different plugins are Name of plugin to use. By default, the different plugins are
tried (starting with imageio) until a suitable tried (starting with imageio) until a suitable
candidate is found. If not given and fname is a tiff file, the candidate is found. If not given and fname is a tiff file, the
tifffile plugin will be used. tifffile plugin will be used.
skipping to change at line 102 skipping to change at line 102
""" """
return call_plugin('imread_collection', load_pattern, conserve_memory, return call_plugin('imread_collection', load_pattern, conserve_memory,
plugin=plugin, **plugin_args) plugin=plugin, **plugin_args)
def imsave(fname, arr, plugin=None, check_contrast=True, **plugin_args): def imsave(fname, arr, plugin=None, check_contrast=True, **plugin_args):
"""Save an image to file. """Save an image to file.
Parameters Parameters
---------- ----------
fname : str fname : str or pathlib.Path
Target filename. Target filename.
arr : ndarray of shape (M,N) or (M,N,3) or (M,N,4) arr : ndarray of shape (M,N) or (M,N,3) or (M,N,4)
Image data. Image data.
plugin : str, optional plugin : str, optional
Name of plugin to use. By default, the different plugins are Name of plugin to use. By default, the different plugins are
tried (starting with imageio) until a suitable tried (starting with imageio) until a suitable
candidate is found. If not given and fname is a tiff file, the candidate is found. If not given and fname is a tiff file, the
tifffile plugin will be used. tifffile plugin will be used.
check_contrast : bool, optional check_contrast : bool, optional
Check for low contrast and print warning (default: True). Check for low contrast and print warning (default: True).
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)