Description Usage Arguments Examples
View source: R/directional_psd.R
Computes directional, radially averaged spectral density of a matrix Used the base::fft() function to get fourier coefficients of the input matrix
1 2 3 |
x |
a matrix |
alpha |
the angle at which the rspectrum is calculated (0 - 90) |
offset |
offset to (alpha + - offset is be used to calculate teh rspectrum) |
res |
resolution of the image represented by the matrix) |
Log |
Logical, whether the fft(x) values should be log-transformed, default = TRUE |
normalized |
Logical, whetther the fft (x) values should be normalized, default = FALSE |
correct.mean |
Logical, whether the input x should be subject to mean correction, default = FALSE |
pad.values |
In case x is not a square, the values to apply to the new cells added in the periphery, default is NaN |
plot |
Logical, whether the respectrum output should be ploted, default = TRUE |
1 2 | data(patches2)
directional.spectrum(x = patches2, alpha = 90, offset = 10, Log = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.