[SciPy-user] toimage

Maik Trömel maik.troemel at maitro.net
Wed Jun 7 04:42:08 CDT 2006


i've got some problems creating a RGB-picture with "toimage".
I have createt an array with integer values betweeen 0 and 4095.
I tried with:

i = scipy.misc.toimage(arr, high = 0, low = 255, cmax=4095, cmin=0, pal=3, mode='P')

But it didn't work. I can't find a good documentation of the command.
I think the problem is "pal" and "mode". What value do I have to choose 
for this parameters?

Thanks for your help.


More information about the SciPy-user mailing list