I had a hard time finding examples of complex arrays[], multidimensional complex arrays[][], single dimension and multidimensional ffts. Attached is the code that i came up to work. It is not clean and does declare some variables that are not used, but it does work. Also, I am neither a Java or Processing expert, so feel free to improve
. I used an image called square30.jpeg. You can find this and others on the web.
How to use:
1. Load Apache Commons Math Library. There are numerous threads on how to do this in the forum. Load this in your Processing Libraries. You need commons-math-2.2. See threads. When you save in library, remove dashes and periods from library and file names.
2. Must use an image that is a power of 2. If not, you need to pad the image to that size.
3. Image must be in local processing project folder.