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

Sebastian seb@rudel...
Thu Oct 4 17:45:26 CDT 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