fft_matrix_shift: FFT Matrix Shift

View source: R/fft_matrix_shift.R

fft_matrix_shiftR Documentation

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)

Arguments

input_matrix

The output of a 2D FFT.

dim

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

Value

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


AcuityView documentation built on Jan. 29, 2026, 5:07 p.m.