fsl_resample: Title

Description Usage Arguments Value Examples

View source: R/fsl_resample.R

Description

Title

Usage

1
2
3
4
5
6
7
8
fsl_resample(
  file,
  voxel_size,
  outfile = NULL,
  retimg = TRUE,
  reorient = FALSE,
  verbose = TRUE
)

Arguments

file

Input file to resample

voxel_size

Voxel size (in mm). This should be a scalar number.

outfile

(character) output filename

retimg

(logical) return image of class nifti

reorient

(logical) If retimg, should file be reoriented when read in? Passed to readnii.

verbose

(logical) print out command before running

Value

If retimg then object of class nifti. Otherwise, the output file.

Examples

1
2
3
4
5
6
7
if (have_fsl()) {
file = mni_fname(mm = 1, brain = TRUE)
est2 = fsl_resample(file = file, voxel_size = 1, retimg = FALSE)
pixdim(est2)
est = fsl_resample(file = file, voxel_size = 1)
pixdim(est)
}

neuroconductor-devel/fslr documentation built on May 6, 2021, 1:44 p.m.