fsl.utils.ensure

This module contains a handful of utility functions which attempt to ensure that some condition is met.

ensureIsImage Ensures that the given img is an in-memory nibabel object.
fsl.utils.ensure.ensureIsImage(img)[source]

Ensures that the given img is an in-memory nibabel object.