rotate3D: Rotate a 3D array in 90 degree steps.

Description Usage Arguments Value See Also

View source: R/rotate3d.R

Description

Rotate a 3D array in 90 degree steps along an axis. This leads to an array with different dimensions.

Usage

1
rotate3D(volume, axis = 1L, degrees = 90L)

Arguments

volume

a 3D image volume

axis

positive integer in range 1L..3L or an axis name, the axis to use.

degrees

integer, must be a (positive or negative) multiple of 90L.

Value

a 3D image volume, rotated around the axis. The dimensions may or may not be different from the input image, depending on the rotation angle.

See Also

Other volume math: flip3D()


freesurferformats documentation built on Feb. 11, 2022, 5:06 p.m.