fslstats | R Documentation |
This function calls fslstats
fslstats(file, opts = "", verbose = TRUE, ts = FALSE, ...)
file |
(character) filename of image to be checked |
opts |
(character) operation passed to |
verbose |
(logical) print out command before running |
ts |
(logical) is the series a timeseries (4D), invoking |
... |
options passed to |
Result of fslstats command
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')
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.