def noise(self, amount, seed=0): mode, data = self.engine.image_data_as_rgb() imgdata = _noise.apply(mode, amount, data, seed) self.engine.set_image_data(imgdata)
def noise(self, amount): imgdata = _noise.apply(self.engine.get_image_mode(), amount, self.engine.get_image_data()) self.engine.set_image_data(imgdata)
def noise(self, amount): mode, data = self.engine.image_data_as_rgb() imgdata = _noise.apply(mode, amount, data) self.engine.set_image_data(imgdata)
def run_filter(self): imgdata = _noise.apply(self.engine.get_image_mode(), int(self.params['amount']), self.engine.get_image_data()) self.engine.set_image_data(imgdata)