def negativeTransform(self):
     image = (filter.apply_negative(self.current_image)).astype(np.uint8)
     self.update_memory_images(image)
     return self.current_image
Beispiel #2
0
 def apply_negative(img):
     r, g, b = rgb.get_rgb_layers(img)
     r = filter.apply_negative(r)
     g = filter.apply_negative(g)
     b = filter.apply_negative(b)
     return rgb.merge_rgb_layers(r, g, b)