From c383e2d3e707f67c3bd8b5dd539249accdaab73c Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Fri, 27 Mar 2020 12:23:14 +0000 Subject: [PATCH] DOC: fslstats example --- fsl/wrappers/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fsl/wrappers/__init__.py b/fsl/wrappers/__init__.py index 44812bce9..87f410cb9 100644 --- a/fsl/wrappers/__init__.py +++ b/fsl/wrappers/__init__.py @@ -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 -- GitLab