def grid(self, grid_w, grid_h): new_c_img = self.c_img.copy() MS3.c_mesh_func(self.c_img, new_c_img, self.np_shape[1] * 3, self.np_shape[0], int(grid_w), int(grid_h), 225) self.c_img = new_c_img
def white_noise(self, p, d): new_c_img = self.c_img.copy() MS3.c_white_noise_func(self.c_img, new_c_img, self.np_shape[1] * 3, self.np_shape[0], int(p), int(d)) self.c_img = new_c_img
def dust(self, p, min_value): new_c_img = self.c_img.copy() MS3.c_fog_func(self.c_img, new_c_img, self.np_shape[1] * 3, self.np_shape[0], int(p), int(min_value)) self.c_img = new_c_img
def linear_filter(self, matrix, divisor): new_c_img = self.c_img.copy() MS3.c_linear_filter_func(self.c_img, new_c_img, self.np_shape[1] * 3, self.np_shape[0], np.array(matrix).flatten(), matrix.shape[0], divisor) self.c_img = new_c_img