Learn R Programming

oasis (version 3.0.4)

correct_image_dim: Image Dimension Correction

Description

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

Usage

correct_image_dim(image, dim = 3)

Arguments

image

volume of class nifti

dim

scalar value of desired image dimension

Value

Returns a volume of class nifti of desired dimension.

Examples

Run this code
# NOT RUN {
library(neurobase)
flair <- readnii('path/to/flair', reorient = FALSE)
flair <- correct_image_dim(flair, dim = 3)
# }

Run the code above in your browser using DataLab