io.imsave() problems with passing arguments to plugin "freeimage"

Zachary Pincus zachary.pincus at yale.edu
Wed Jul 11 08:50:11 EDT 2012


I wonder if this has to do with the type-promotion behavior changes in a recent numpy version? What is the dtype of "summation" below?


On Jul 10, 2012, at 9:35 AM, Sigmund wrote:

> Hey!
> 
> Whil writing the test code I found out that saving the array by itself doesn't cause the error. Only after summing two arrays it fails. 
> 
> import numpy as np
> import skimage.io as io
> io.use_plugin("freeimage", "imread")
> one = np.ones([2048,2048],dtype=np.int32)
> two = np.zeros([2048,2048],dtype=np.int32)
> summation = one + two
> io.imsave("test.tif",summation, plugin="freeimage")
> 
>  not using the freeimage plugin in not failing.
> 
> Siggi




More information about the scikit-image mailing list