Learn R Programming

fslr (version 2.25.3)

fslhd: Get NIfTI header using FSL

Description

This function calls fslhd to obtain a nifti header

Usage

fslhd(file, opts = "", verbose = TRUE, ...)

Value

Character of information from fslhd

Arguments

file

(character) image filename or character of class nifti

opts

(character) additional options to be passed to fslhd

verbose

(logical) print out command before running

...

options passed to checkimg

Examples

Run this code
if (have.fsl()){
 mnifile = file.path(fsldir(), "data", "standard", 
   "MNI152_T1_2mm.nii.gz")
 fslhd(mnifile)
}   

Run the code above in your browser using DataLab