Skip to main content
. 2020 Sep 17;20(18):5312. doi: 10.3390/s20185312
Algorithm 1: Transforming IBI spatial images into frequency domain images
Input: IBI spatial image
Data: Image data Imgdata as array
Output: IBI frequency domain image
/* apply 2-D fast Fourier transform
  f← np.fft.fft2(Imgdata);
  f← np.fft.fftshift(f);
  f← np.abs(f);
  f← np.log10(f);
/* find the original contrast range
  high← np.nanmax(fourier[np.isfinite(f)]);
  min← np.nanmin(fourier[np.isfinite(f)]);
  orgContImg← high-min;
/* transofrm normalized data into an image
  normFourier ← (f-min) / orgContImg * 255;
  normFourierImg ← Image.fromarray(normFourier);
return normFourierImg;
/* Save image as a file
  matplotlib.image.imsave(flname, normFourierImg,cmap = viridis)


*/



*/



*/



*/