New Quantum operators

Bob Friesenhahn <[email protected]> Tue, 3 Jun 2008 23:02:17 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.tools,gmane.comp.video.graphicsmagick.core
Message-ID <[email protected]>
In latest development GM 1.3, the QuantumOperatorImage() function 
(accessed via -operator) now supports these new enumeration values:

   NoiseGaussianOp,         /* Gaussian noise */
   NoiseImpulseOp,          /* Impulse noise */
   NoiseLaplacianOp,        /* Laplacian noise */
   NoiseMultiplicativeOp,   /* Multiplicative gaussian noise */
   NoisePoissonOp,          /* Poisson noise */
   NoiseUniformOp           /* Uniform noise */

which are accessed via Noise-Gaussian, Noise-Impulse, Noise-Laplacian, 
Noise-Multiplicative, Noise-Poisson, and Noise-Uniform operator 
arguments to the -operator command.

As an example, this command adds 10% gaussian noise to the green 
channel of the image

   gm convert input.png -operator green noise-Gaussian 10% output.png

Those of you with X11 can view a quick demo like

   gm convert image:logo -operator all noise-Gaussian 15% x:

Adding noise to an image is useful for many purposes.  For example, it 
can be used to make an image with too few colors (posterization or 
banding) appear like it has more colors.

Bob
======================================
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php