Learn R Programming

fslr (version 1.3)

fslrange: Get range of an image

Description

This function calls fslstats -R to get the range of an image

Usage

fslrange(file, verbose = TRUE, ...)

Arguments

file
(character) filename of image to be checked
verbose
(logical) print out command before running
...
options passed to checkimg

Value

  • numeric vector of length 2

Examples

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

Run the code above in your browser using DataLab