Adding noise. The amount of noise.

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Re: Adding noise. The amount of noise.

Post by dognose »

I'd be interested in knowing how to do this as well. How to add just a little noise.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Adding noise. The amount of noise.

Post by magick »

The noise attenuation is fixed as constants in the magick/effects.c module in method GenerateNoise(). You can always add more noise by calling the noise command line argument more than once but you can't reduce the noise without modifying the source code at this time.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Adding noise. The amount of noise.

Post by anthony »

You could overlay a random amount of a random image...
See DIY random noise
http://www.imagemagick.org/Usage/canvas/#random
Of course -FX is slow, but +noise poisson isn't.

I may have to re-write that part of IM examples to use it :-)

However you are right -noise and +noise could probably do with a rewrite.
Volunteers?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Adding noise. The amount of noise.

Post by anthony »

A special +noise Random method was created that will replace the current image with a purely and linearly random noise. This removes the need for using the very slow -fx to generate pure random noise images. From that start you can then modify the image to generate any noise pattern you like.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply