flip_img: Flip NifTI Image

View source: R/flip_img.R

flip_imgR Documentation

Flip NifTI Image

Description

This image will flip x, y, or z direction

Usage

flip_img(img, x = FALSE, y = FALSE, z = FALSE, ...)

Arguments

img

nifti object or character filename

x

(logical) Flip x direction

y

(logical) Flip y direction

z

(logical) Flip z direction

...

Arguments passed to check_nifti

Value

Object of class nifti

Examples

img = random_nifti(rep(15, 3))
flipped = flip_img(img, x = TRUE, y = TRUE, z = TRUE)
img = random_nifti(rep(15, 2))
flipped = flip_img(img, x = TRUE)
testthat::expect_error(flip_img(img, z= TRUE))

neurobase documentation built on May 29, 2024, 2:17 a.m.