This function calculates the mean image using fft

mean_image(x, nvoxels, shift = TRUE, verbose = TRUE)

Arguments

x

3D array

nvoxels

window (in voxels) for the neighborhood (1 results in a 3x3 cube)

shift

Should results be shifted back?

verbose

Diagnostic outputing

Value

Array of size of x