How to randomly jitter pixels?
Posted: 2013-12-12T05:45:46-07:00
Hi, first post!
I've written a script that keeps an eye on a folder of images, resizes them as they are created (using ImageMagick) and outputs to a different folder. The problem is a very distinct moire pattern (because of the nature of the images) that simple resizing doesn't get rid of.
Is there a way to apply a random jitter to the pixels of the original high-rez images before resizing? I think this should help the moire pattern in exchange for a bit of grain / noise in the resized image, but I want to see how that would look. Is there a simple pixel filter that randomly moves pixels over by a set amount (1-2 pixels)?
Thanks!
I've written a script that keeps an eye on a folder of images, resizes them as they are created (using ImageMagick) and outputs to a different folder. The problem is a very distinct moire pattern (because of the nature of the images) that simple resizing doesn't get rid of.
Is there a way to apply a random jitter to the pixels of the original high-rez images before resizing? I think this should help the moire pattern in exchange for a bit of grain / noise in the resized image, but I want to see how that would look. Is there a simple pixel filter that randomly moves pixels over by a set amount (1-2 pixels)?
Thanks!