def apply_highboost(self, filter_size, c): image, mask = filter.apply_highboost(self.current_image, c, filter_size) self.update_memory_images(image) return self.current_image
def apply_highboost(img, c, filter_matrix): r, g, b = rgb.get_rgb_layers(img) r = filter.apply_highboost(r, c, filter_matrix) g = filter.apply_highboost(g, c, filter_matrix) b = filter.apply_highboost(b, c, filter_matrix) return rgb.merge_rgb_layers(r, g, b)