I have this code for calculating the FFT for an image.
FFT
library(EBTmage) img <- readImage("~/Desktop/lena_stripe.png") display(img) img_g