Commit c383e2d3 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

DOC: fslstats example

parent cfe91952
......@@ -40,9 +40,12 @@ the :func:`.bet` function uses ``mask`` instead of ``m``).
Two exceptions to the above are :class:`.fslmaths` and :class:`.fslstats`,
which provide a more object-oriented interface::
from fsl.wrappers import fslmaths
from fsl.wrappers import fslmaths, fslstats
fslmaths('image.nii').mas('mask.nii').bin().run('output.nii')
imean, imin, imax = fslstats('image.nii').k('mask.nii').m.R.run()
Wrapper functions for commands which accept NIfTI image or numeric text files
will for the most part accept either in-memory ``nibabel`` images/Numpy arrays
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment