Learn R Programming

AcuityView (version 1.1.1)

fft_matrix_shift: FFT Matrix Shift

Description

This function rearranges the output of a 2D FFT by moving the zero-frequency component to the center of the matrix. It is used internally by AcuityView() to correctly align spatial frequencies.

Usage

fft_matrix_shift(input_matrix, dim = -1)

Value

A matrix with the zero-frequency component shifted to the center.

Arguments

input_matrix

The output of a 2D FFT.

dim

Integer. -1 gives the correct matrix shift for the AcuityView function.