diff --git a/fsl/data/image.py b/fsl/data/image.py index dd423d4b5f8fc5341ea104378e5cf1d58e3aed1f..2e75733899cffac91a691305e19851d3e1bf1fbd 100644 --- a/fsl/data/image.py +++ b/fsl/data/image.py @@ -1195,6 +1195,14 @@ class Image(Nifti): else: return nvals + @property + def iscomplex(self): + """Returns ``True`` if this image has a complex data type, ``False`` + otherwise. + """ + return np.issubdtype(self.dtype, np.complexfloating) + + @Nifti.voxToWorldMat.setter def voxToWorldMat(self, xform): """Overrides the :meth:`Nifti.voxToWorldMat` property setter.