comparison data_generation/transformations/gimp_script.py @ 442:d5b2b6397a5a

added permut pixel
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Mon, 03 May 2010 18:38:27 -0400
parents dd2df78fcf47
children
comparison
equal deleted inserted replaced
431:bfa349f567e8 442:d5b2b6397a5a
50 def transform_image(self, image): 50 def transform_image(self, image):
51 if self.mblur_length or self.pinch: 51 if self.mblur_length or self.pinch:
52 setpix(image) 52 setpix(image)
53 if self.mblur_length and self.blur_bool: 53 if self.mblur_length and self.blur_bool:
54 pdb.plug_in_mblur(img, layer1, 0, self.mblur_length, self.mblur_angle, 0, 0) 54 pdb.plug_in_mblur(img, layer1, 0, self.mblur_length, self.mblur_angle, 0, 0)
55 if self.pinch: 55 if self.pinch:
56 pdb.plug_in_whirl_pinch(img, layer1, 0.0, self.pinch, 1.0) 56 pdb.plug_in_whirl_pinch(img, layer1, 0.0, self.pinch, 1.0)
57 image = getpix() 57 image = getpix()
58 58
59 return image 59 return image
60 60