Mercurial > ift6266
diff transformations/affine_transform.py @ 73:859ebd7f8754
fixed float32 return on affine_transform
author | Xavier Glorot <glorotxa@iro.umontreal.ca> |
---|---|
date | Wed, 10 Feb 2010 13:02:05 -0500 |
parents | d9d836d3c625 |
children | 5e00ed18ae32 |
line wrap: on
line diff
--- a/transformations/affine_transform.py Wed Feb 10 11:34:32 2010 -0500 +++ b/transformations/affine_transform.py Wed Feb 10 13:02:05 2010 -0500 @@ -61,7 +61,7 @@ numpy.asarray(\ NIST_image.reshape(self.shape)*255.0, dtype='uint8')) nwim = im.transform( (32,32), Image.AFFINE, [self.a,self.b,self.c,self.d,self.e,self.f]) - return numpy.asarray(nwim)/255.0 + return numpy.asarray(numpy.asarray(nwim)/255.0,dtype='float32')