[IPOL discuss] The Hatchery: an informal index of available code within our community.

eml ellopis at gmail.com
Tue Sep 27 14:50:03 CEST 2011


2011/9/26 Miguel Colom <Miguel.Colom at cmla.ens-cachan.fr>:

> For example, let's think about a very simple denoising algoritm that puts
> to zero those DCT coefficients that are below a given threshold.

You can do that in one line (for the DFT instead of the DCT) using the
programs already available in the hatchery:

fft 1 lena.png | plambda - "x x[0] x[1] hypot 1000 > * " | fft -1 |
quantize 0 255 > lena_filtered.png

For doing it using cosine transforms, someone should modify the "fft"
program to compute the dct instead.


More information about the discuss mailing list