Skip to content

Instantly share code, notes, and snippets.

@rthbound
Last active January 7, 2016 06:32
Show Gist options
  • Save rthbound/18ceb3efda491a85dae1 to your computer and use it in GitHub Desktop.
Save rthbound/18ceb3efda491a85dae1 to your computer and use it in GitHub Desktop.
Taking fft of the squares in https://imgh.us/eca.png
convert eca.png -crop 400x400 +repage tiles_%03d.png
convert -dispose previous -loop 0 tiles_*.png eca.gif
for i in $(ls tiles*); do convert $i -fft +depth +adjoin fft_%d_$i; done
convert -dispose previous -loop 0 fft_1_tiles_*.png eca-fft-phase.gif
convert -dispose previous -loop 0 fft_0_tiles_*.png eca-fft-mag.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment