fslval: Get value from FSL header

Description Usage Arguments Value Examples

View source: R/fslhd.R

Description

This function calls fslval to obtain a nifti header

Usage

1
fslval(file, keyword = "", verbose = TRUE, ...)

Arguments

file

(character) image filename or character of class nifti

keyword

(character) keyword to be taken from fslhd

verbose

(logical) print out command before running

...

options passed to checkimg

Value

Character of information from fslhd field specified in keyword

Examples

1
2
3
4
5
if (have.fsl()){
 mnifile = file.path(fsldir(), "data", "standard", 
   "MNI152_T1_2mm.nii.gz")
 fslval(mnifile, keyword = "dim1")
}  

neuroconductor-devel-releases/fslr documentation built on May 6, 2020, 4:22 p.m.