flip3D: Flip a 3D array along an axis.

Description Usage Arguments Value See Also

View source: R/rotate3d.R

Description

Flip the slice of an 3D array horizontally or vertically along an axis. This leads to an output array with identical dimensions.

Usage

1
flip3D(volume, axis = 1L, how = "horizontally")

Arguments

volume

a 3D image volume

axis

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

how

character string, one of 'horizontally' / 'h' or 'vertically' / 'v'. How to flip the 2D slices. Note that flipping *horizontally* means that the image will be mirrored along the central *vertical* axis.

Value

a 3D image volume, flipped around the axis. The dimensions are identical to the dimensions of the input image.

See Also

Other volume math: rotate3D()


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