correct_image_dim: Image Dimension Correction

Description Usage Arguments Value Examples

View source: R/correct_image_dim.R

Description

This function takes an image and drops dimensions until the volume is a user specified dimension.

Usage

1

Arguments

image

volume of class nifti

dim

scalar value of desired image dimension

Value

Returns a volume of class nifti of desired dimension.

Examples

1
2
3
4
5
6
## Not run: 
library(neurobase)
flair <- readnii('path/to/flair', reorient = FALSE)
flair <- correct_image_dim(flair, dim = 3)

## End(Not run)

neuroconductor-devel/oasis documentation built on Dec. 9, 2018, 10:22 p.m.