You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, using plain imageio.imread results in cpbd complaining about the input shape, because its in RGB.
ValueError: The parameter image must be a 2-dimensional array
I am unable to read an image for cpbd.compute() to process. The example usage in README is broken.
This code:
from scipy import ndimage
input_image = ndimage.imread('/tmp/LIVE_Images_GBlur/img4.bmp', mode='L')
Results in:
AttributeError: module 'scipy.ndimage' has no attribute 'imread'
The docs for Scipy say imread was removed in version 1.2,
"imread is deprecated in SciPy 1.0. 0, and will be removed in 1.2."
https://docs.scipy.org/doc/scipy-1.2.1/reference/generated/scipy.misc.imread.html
I have found a StackOverflow page that recommends using image.io:
https://stackoverflow.com/questions/15345790/scipy-misc-module-has-no-attribute-imread
However, there is no mode="L" parameter, just a format param, which overrides the image format guess from the extension (ie format="JPEG").
However, using plain imageio.imread results in cpbd complaining about the input shape, because its in RGB.
ValueError: The parameter
image
must be a 2-dimensional arrayIf I convert the image to grayscale, it works.
Please update your README to address this change in modern scipy.
Thank you!!
The text was updated successfully, but these errors were encountered: