flip2D: Flip a 2D matrix.

Description Usage Arguments Value

View source: R/rotate3d.R

Description

Flip a 2D matrix.

Usage

1
flip2D(slice, how = "horizontally")

Arguments

slice

a 2D matrix

how

character string, one of 'vertically' / 'v' or 'horizontally' / 'h'. Note that flipping *horizontally* means that the image will be mirrored along the central *vertical* axis. If 'NULL' is passed, the passed value is returned unaltered.

Value

2D matrix, the flipped matrix.


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