mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-17 11:32:45 +08:00
Revert "Pass as_grey to the imread plugins"
This reverts commit 8f16ca1242, as the
as_grey keyword should disappear from the plugins.
This commit is contained in:
@@ -69,7 +69,7 @@ def imread(fname, as_grey=False, plugin=None, flatten=None,
|
||||
if flatten is not None:
|
||||
as_grey = flatten
|
||||
|
||||
img = call_plugin('imread', fname, as_grey, plugin=plugin, **plugin_args)
|
||||
img = call_plugin('imread', fname, plugin=plugin, **plugin_args)
|
||||
|
||||
if as_grey and getattr(img, 'ndim', 0) >= 3:
|
||||
img = rgb2grey(img)
|
||||
|
||||
Reference in New Issue
Block a user