FFTs of images
in
Programming Questions
•
3 years ago
This question might have been asked before, so don't flame me, but I couldn't easily find the answer.
I would like to do a couple of sketches which involve a lot of FourierTransforms of 2D (originally real) data.
Can anybody show me, how I could most easily achieve this in Processing, using whatever library or Java-function is needed?
A simple code-snipped which would do the following would be great:
- create 512x512 data array (holding float values)
- FFT this array
- output 512x512 Fourie-transform array(s) (real/imaginary)
- do the same backwards with iFFT.
2