SPATIALFFT-Computesa1Dspatialfrequencyprofilefroma2Dimage.[SF,SF_AMP]=vlt.image.spatialFFT(IMAGE,METERS_PER_PIXEL)[SF,SF_AMP]=vlt.image.spatialFFT(IMAGE,METERS_PER_PIXEL,'mask',MASK)Calculatesa1D,orientation-independentspatialfrequencyprofilefroma2Dimage.Thisisachievedbytakingthe2DFourierTransformoftheimageandthenperformingaradialaverageoftheresultingamplitudespectrum.Inputs:IMAGE-A2Dmatrix(e.g.,animage)ofdouble-precisionvalues.AnyNaNvaluesintheimagewillbereplacedby0beforetheFFT,whichpreservestheDCcomponent.METERS_PER_PIXEL-Ascalarvalueindicatingthephysicalsizeofeachpixelinmeters.Thisisusedtocorrectlyscalethefrequencyaxis.Name-ValuePairs:'mask'-AlogicalornumericmatrixofthesamesizeasIMAGE.Pixelswherethemaskis`false`or0aresetto0andexcludedfromtheanalysis.Outputs:spatialFrequency-A1Dvectorrepresentingthespatialfrequencyaxisinunitsofcyclespermeter.spatialFrequencyAmp-A1Dvectorcontainingthecorrespondingmeanamplitudeforeachspatialfrequency.Example:%Createasampleimagewithaknownfrequency[x,~]=meshgrid(1:256);img=sin(2*pi*10*x/256);%10cyclesin256pixelsm_per_pix=1e-3;%1mmperpixel[sf,amp]=vlt.image.spatialFFT(img,m_per_pix);figure;plot(sf,amp,'o-');xlabel('Spatial Frequency (cycles/meter)');ylabel('Amplitude');title('1D Spatial frequency Profile');