Learn R Programming

fslr (version 2.25.3)

fslmax: Get min/max of an image

Description

This function calls the range or robust range functions from FSL and then extracts the min/max

Usage

fslmax(file, ...)

fslmin(file, ...)

Value

Numeric vector of mins/maxs or just one depending if ts = TRUE

Arguments

file

(character) filename of image to be checked

...

options passed to fslrange

Examples

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

Run the code above in your browser using DataLab