fslrange: Get range of an image

Description Usage Arguments Value Examples

View source: R/fslhd.R

Description

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

Usage

1
fslrange(file, robust = FALSE, verbose = TRUE, ts = FALSE, ...)

Arguments

file

(character) filename of image to be checked

robust

(logical) Should the range be robust (-r)

verbose

(logical) print out command before running

ts

(logical) is the series a timeseries (4D), invoking -t option

...

options passed to checkimg

Value

numeric vector of length 2

Examples

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

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