def convolve_image(self, image): res_image = PNGImage( None, image.width, image.height, np.empty((image.height, image.width), dtype=np.uint8), image.info ) res_image.data = matrix.convolve_image_sobel( image.data, self.data_x, self.data_y, image.height, image.width, self.size ) return res_image
def convolve_image(self, image): res_image = PNGImage( None, image.width, image.height, np.empty((image.height, image.width), dtype=np.uint8), image.info ) res_image.data = matrix.convolve_image_gaussian(image.data, self.values, image.height, image.width, self.size) return res_image