shift3D.Rd
One axis of the three-dimensional array is translated by an integer amount. This is useful when applying convolution operators in the Fourier domain.
shift3D(A, s, type, fill = 0)
A | is a three-dimensional array. |
---|---|
s | is the integer number of translation steps. |
type | is a character string using anatomical coordinates assuming a transverse acquisition scheme (“LR” = left-right = x-axis, “AP” = anterior-posterior = y-axis, “SI” = superior-inferior = z-axis). |
fill | is the quantity used to fill gaps induced by the translations (circular boundary conditions are NOT used). |
A three-dimensional array is returned, the same dimension as the original array, with one dimension translated.
Brandon Whitcher bwhitcher@gmail.com