diff transformations/testtransformations.py @ 94:1b8176e9892e

cleaning some *.pyc and *.py~ files in pycapcha
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Thu, 11 Feb 2010 11:55:03 -0500
parents 104e0b8a1c70
children b3d15100842a
line wrap: on
line diff
--- a/transformations/testtransformations.py	Thu Feb 11 11:23:35 2010 -0500
+++ b/transformations/testtransformations.py	Thu Feb 11 11:55:03 2010 -0500
@@ -28,7 +28,8 @@
 MODULE_INSTANCES = [Slant(),Thick(),AffineTransformation(),LocalElasticDistorter(),GIMP1(), PermutPixel(),DistorsionGauss(), Rature(), Occlusion(),AddBackground(), BruitGauss(),PoivreSel(), Contrast()]
 
 ###---------------------complexity associated to each of them
-complexity = [0.7,0.7,0.7,0.7,0.7,0.3,0.3,0.5,0.5,0.1,0.3,0.3,0.5]
+complexity = [0.6,0.6,0.6,0.6,0.6,0.3,0.3,0.5,0.5,0.5,0.3,0.3,0.5]
+complexity = [0.5]*len(MODULE_INSTANCES)
 #complexity = [0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.]
 
 
@@ -52,7 +53,7 @@
 
 pygame.font.init()
 
-for i in range(10000):
+for i in range(1000):
     a=d[i,:]
     b=N.asarray(N.reshape(a,(32,32)))
     c=N.asarray([N.reshape(a*255.0,(32,32))]*3).T
@@ -88,7 +89,7 @@
         else:
             offset += 4*32
         ct+=1
-    pygame.image.save(screen,'/u/glorotxa/exemples/%s.BMP'%i)
+    pygame.image.save(screen,'/u/glorotxa/exemples/%s.PNG'%i)
     #raw_input('Press Enter')
 
 #pygame.display.quit()