Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fslrange

Get range of an image


Description

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

Usage

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

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

fslr

Wrapper Functions for 'FSL' ('FMRIB' Software Library) from Functional MRI of the Brain ('FMRIB')

v2.24.1
GPL-3
Authors
John Muschelli [aut, cre] (<https://orcid.org/0000-0001-6469-1750>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.