import ij.plugin.FFT;
import ij.io.FileInfo;
import ij.ImagePlus;
String path = "C:\myfolder\images";
FileInfo[] info = ij.io.Opener.getFileInfo(path);
FFT fft = new FFT();
ImagePlus img = new ImagePlus();
for (int i = 0; i < info.length; i++) {
img = ij.io.Opener.openImage(info[i]);
fft.run(img);
ImagePlus fftImage = fft.getFFTImage();
img.setProcessor(fftImage.getProcessor().convertToFloat().add(fftImage.getProcessor()));
float outerPixelBrightness = img.getProcessor().getPixelValue(0, 0);
fft.run(img);
ImagePlus addFFTImage = fft.getFFTImage();
img.setProcessor(addFFTImage.getProcessor().convertToFloat().add(addFFTImage.getProcessor()));
fft.inverseFFT();
img.show();
}