directional.spectrum: Computes directional, radially averaged spectral density of a...

Description Usage Arguments Examples

View source: R/directional_psd.R

Description

Computes directional, radially averaged spectral density of a matrix Used the base::fft() function to get fourier coefficients of the input matrix

Usage

1
2
3
directional.spectrum(x, alpha, offset = 10, res = 1, Log = TRUE,
  normalized = FALSE, correct.mean = FALSE, pad.values = NaN,
  plot = TRUE, ...)

Arguments

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

Examples

1
2
data(patches2)
directional.spectrum(x = patches2, alpha = 90, offset = 10, Log = T)

shoebodh/radialpsd documentation built on May 29, 2019, 9:26 p.m.