def apply_median(self, filter_size):
     image = filter.apply_median(self.current_image, filter_size)
     self.update_memory_images(image)
     return self.current_image
示例#2
0
 def apply_median(img, filter_size):
     r, g, b = rgb.get_rgb_layers(img)
     r = filter.apply_median(r, filter_size)
     g = filter.apply_median(g, filter_size)
     b = filter.apply_median(b, filter_size)
     return rgb.merge_rgb_layers(r, g, b)