FFTUtilities | R Documentation |
Miscellaneous utilities for working with 2D images in the Fourier domain.
wftophase(X, lambda=1)
padmatrix(X, npad, fill = mean(X, na.rm=TRUE))
submatrix(X, size = 255)
fftshift(X)
.up2(nr, nc=nr)
X |
A matrix |
lambda |
Value of the wavelength, in the same units as X |
npad |
Size of padded matrix |
fill |
Values to be assigned to padded matrix elements |
size |
Size of returned matrix |
nr |
A number |
nc |
A number |
wftophase
computes the complex phase from wavefront values.
padmatrix
pads a matrix to size npad
x npad
,
placing the original matrix in the lower left hand corner of the
padded matrix.
submatrix
extracts a size
x size
matrix
from the center of a larger matrix.
fftshift
shuffles the quadrants of a matrix around to
put the DC element (1,1) in the center of the transformed matrix,
with spatial frequencies increasing to the right and up.
A matrix transformation of the input matrix X
.
.up2
returns the next higher power of 2 than
max(nr, nc)
.
These low level routines are used by several higher level functions that operate in the Fourier domain.
M.L. Peck mpeck1@ix.netcom.com
startest
,
fftfit
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.