[Neuroimaging] dicom to nifti
David Soto
d.soto at bcbl.eu
Tue Oct 13 13:03:16 EDT 2020
Hi,
I am trying to convert single dicom files to a nifti file for a real time fMRI analysis
the code looks like this
___
from nibabel.nicom import dicomreaders
import pydicom
dataset = pydicom.dcmread(dcm[0])
pepe = dicomreaders.mosaic_to_nii(dataset)
pepe_nii = load_img(pepe) # loading nii with nibabel
____
i tried this a couple of days on our Siemens Prisma and it worked fine using a phantom
today using the same scanner and phantom sequence it gives an error
DicomReadError: data does not appear to be in mosaic format
could you help please?
cheers
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20201013/43db1411/attachment.html>
More information about the Neuroimaging
mailing list