vlt.image.spatialPowerSpectralDensity
SPATIALPOWERSPECTRALDENSITY - Computes a 1D radially averaged power spectrum.
[SF, SF_POWER] = vlt.image.spatialPowerSpectralDensity(IMAGE, METERS_PER_PIXEL, ...)
Calculates a 1D, orientation-independent power spectrum from a 2D image.
Inputs:
IMAGE - A 2D matrix of double-precision values. NaN values
will be replaced by 0 before the FFT.
METERS_PER_PIXEL- The physical size of each pixel in meters.
Name-Value Pairs:
'mask' - A logical matrix of the same size as IMAGE. Pixels
where the mask is `false` are excluded.
'window' - A string specifying the windowing function to apply
before the FFT to reduce boundary artifacts. Can be
'hanning' (default) or 'none'.
'fft_padding_factor' - A scalar >= 1 that increases the frequency
resolution by zero-padding the image. A value of 2
doubles the resolution. (Default: 1, no padding).
Outputs:
spatialFrequency - A 1D vector of the spatial frequency axis (cycles/meter).
spatialPower - A 1D vector of the mean power for each frequency.