def createDistract(self): self.createGabor() im_hor = Enhance.Contrast( rectangle(self.gabor_horizontal,"green") ).enhance(0.6) im_ver = Enhance.Contrast( rectangle(self.gabor_vertical,"green") ).enhance(0.6) self.images["square"] = [self.convertPIL(im_hor), self.convertPIL(im_ver)] self.createGabor((100,100)) im_hors = Enhance.Contrast( circle(self.gabor_horizontal,"green") ).enhance(0.7).resize((100,100),img.ANTIALIAS) im_vers = Enhance.Contrast( circle(self.gabor_vertical,"green") ).enhance(0.7).resize((100,100),img.ANTIALIAS) self.images["size"] = [self.convertPIL(im_hors), self.convertPIL(im_vers)]
def createOverlay(self,colors): for color in colors: self.createGabor() img_hor = Enhance.Contrast( circle(self.gabor_horizontal,color) ).enhance(0.6) img_ver = Enhance.Contrast( circle(self.gabor_vertical,color) ).enhance(0.6) self.images[color] = [self.convertPIL(img_hor), self.convertPIL(img_ver)]