changeset 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 af2f9252dd14
children f3e4328e3514 53ee1097c02c
files transformations/affine_transform.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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')