Learn R Programming

AFM (version 2.0)

shiftFFT2D: Shift the quadrants of the FFT 2D

Description

shiftFFT2D returns the FFT 2D matrix shifted to put zero frequencies in the middle.

Usage

shiftFFT2D(fft2data)

Arguments

fft2data

the FFT 2D of the AFM image

Value

The shifted matrix

Examples

Run this code
# NOT RUN {
library(AFM)
library(fftwtools)

data(AFMImageOfNormallyDistributedHeights)
AFMImage<-AFMImageOfNormallyDistributedHeights
nMheightsData= matrix(AFMImage@data$h, nrow=AFMImage@samplesperline)
shiftedFFT2D<-shiftFFT2D(fftwtools::fftw2d(nMheightsData))
# }

Run the code above in your browser using DataLab