Пример #1
0
 def apply_laplacian(img):
     r, g, b = rgb.get_rgb_layers(img)
     r, r_sharpened = filter.apply_laplacian(r)
     g, g_sharpened = filter.apply_laplacian(g)
     b, b_sharpened = filter.apply_laplacian(b)
     return rgb.merge_rgb_layers(r, g, b), rgb.merge_rgb_layers(
         r_sharpened, g_sharpened, b_sharpened)
 def apply_laplacian(self):
     image, mask = filter.apply_laplacian(self.current_image)
     self.update_memory_images(image)
     return self.current_image