Sha256: f013c9a273c401f8d78603857a06ac7b0b3111dedfd73da08a08b8d0f6b5e6a8
Contents?: true
Size: 456 Bytes
Versions: 19
Compression:
Stored size: 456 Bytes
Contents
#!/usr/bin/env ruby -w require 'rmagick' # Demonstrate the Image#add_noise method NOISE_TYPES = [Magick::UniformNoise, Magick::GaussianNoise, Magick::MultiplicativeGaussianNoise, Magick::ImpulseNoise, Magick::LaplacianNoise, Magick::PoissonNoise] img = Magick::Image.read('images/Flower_Hat.jpg').first NOISE_TYPES.each do |noise| copy = img.add_noise(noise) copy.write "add_noise_#{noise}.jpg" end exit
Version data entries
19 entries across 19 versions & 3 rubygems