conform_volume: Conform imaging data in "FreeSurfer" way

View source: R/utils_orient.R

conform_volumeR Documentation

Conform imaging data in 'FreeSurfer' way

Description

Reproduces conform algorithm used by 'FreeSurfer' to conform 'NIfTI' and 'MGH' images.

Usage

conform_volume(x, save_to, dim = c(256, 256, 256))

Arguments

x

path to the image file

save_to

path where the conformed image will be saved, must ends with '.mgz'

dim

positive integers of length three, the conformed dimension; by default 'FreeSurfer' conform images to 1mm volume cube with 256x256x256 dimension

Value

Nothing; the result will be save to save_to


threeBrain documentation built on April 4, 2025, 1:36 a.m.