Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Work without deprecated SciPy methods (Py3.9+) #260

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Work without deprecated SciPy methods (Py3.9+) #260

wants to merge 1 commit into from

Conversation

xavetar
Copy link

@xavetar xavetar commented Dec 9, 2020

-In the last version SciPy some methods have been deprecated.
-Methods have been replaced to PIL* & imageio*

--------------------More details--------------------

-The read method has been replaced from "scipy.ndimage.imread(filename, mode='RGB')" to "imageio.imread(filename, as_gray=False, pilmode="RGB")"
-The return buffer has been replaced from "scipy.misc.toimage(output, cmin=0, cmax=255)" to "PIL.Image.fromarray((output).astype('uint8'), mode='RGB')"

-In the last version SciPy some methods have been deprecated.
-Methods have been replaced to PIL* & imageio*

--------------------_______More details_______--------------------

-The read method has been replaced from "scipy.ndimage.imread(filename, mode='RGB')" to "imageio.imread(filename, as_gray=False, pilmode="RGB")"
-The return buffer method has been replaced from "scipy.misc.toimage(output, cmin=0, cmax=255)" to "PIL.Image.fromarray((output).astype('uint8'), mode='RGB')"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant