[SciPy-user] fromimage returns instance instead of numpy array

Sebastian seb at rudel.de
Thu Oct 4 18:45:26 EDT 2007


Hello,
after I updated numpy and scipy to the newest version a script which uses the
scipy.misc.pilutil package dosent't work any more. The function "fromimage"
returns an image as image and dosen't convert it to a numpy array. The code
looks like that:

from scipy.misc.pilutil import *
import Image

dummy_data = Image.open(self.name)
dummy_data = dummy_data.convert("I")
dummy_data = dummy_data.convert("F")

self.image = fromimage(dummy_data)

Is there a bug or is the useage of "fromimage" changed?

Greetings Sebastian




More information about the SciPy-User mailing list