You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading up a Philips diffusion DICOM (with trace volume) results in an incorrect image shape with an extra? dimension (96, 96, 60, 2, 33).
In [1]: fromnibabel.nicom.dicomwrappersimportwrapper_from_fileIn [2]: mw=wrapper_from_file('philips-dwi.dcm', force=True)
In [3]: mw.image_shape---------------------------------------------------------------------------WrapperErrorTraceback (mostrecentcalllast)
<ipython-input-3-4963e90423f3>in<module>()
---->1mw.image_shape/home/mathias/miniconda2/envs/dev3/lib/python3.6/site-packages/nibabel/onetime.pyin__get__(self, obj, type)
139# Errors in the following line are errors in setting a140# OneTimeProperty-->141val=self.getter(obj)
142143setattr(obj, self.name, val)
/home/mathias/miniconda2/envs/dev3/lib/python3.6/site-packages/nibabel/nicom/dicomwrappers.pyinimage_shape(self)
535n_vols=np.prod(shape[3:])
536ifn_frames!=n_vols*shape[2]:
-->537raiseWrapperError("Calculated shape does not match number of "538"frames.")
539returntuple(shape)
WrapperError: Calculatedshapedoesnotmatchnumberofframes.
The text was updated successfully, but these errors were encountered:
Originally brought up in nipy/heudiconv#275 by @bmelo
Version:
nibabel-2.3.1
Loading up a Philips diffusion DICOM (with trace volume) results in an incorrect image shape with an extra? dimension (96, 96, 60, 2, 33).
The text was updated successfully, but these errors were encountered: