fslstats: FSL Stats

Description Usage Arguments Value Examples

View source: R/fslhd.R

Description

This function calls fslstats

Usage

1
fslstats(file, opts = "", verbose = TRUE, ts = FALSE, ...)

Arguments

file

(character) filename of image to be checked

opts

(character) operation passed to fslstats

verbose

(logical) print out command before running

ts

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

...

options passed to checkimg

Value

Result of fslstats command

Examples

1
2
3
4
5
6
7
8
9
if (have.fsl()){
system.time({
x = array(rnorm(1e6), dim = c(100, 100, 100))
img = nifti(x, dim= c(100, 100, 100), 
datatype = convert.datatype()$FLOAT32, cal.min = min(x), 
cal.max = max(x), pixdim = rep(1, 4))
entropy = fslstats(img, opts='-E')
})
}  

neuroconductor-devel-releases/fslr documentation built on May 6, 2020, 4:22 p.m.