Learn R Programming

fsbrain (version 0.1.0)

flip2D: Flip a 2D matrix.

Description

Flip a 2D matrix.

Usage

flip2D(slice, how = "horizontally")

Arguments

slice

a 2D matrix

how

character string, one of 'vertically' or 'horizontally'. 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.