[Neuroimaging] dicom to nifti

David Soto d.soto at bcbl.eu
Tue Oct 13 13:19:15 EDT 2020


I figure this out, sorry my fault, I was reading the dicoms from the localiser :( 
thanks for the support and amazing software! 
cheers 
david 

> From: "David Soto" <d.soto at bcbl.eu>
> To: "neuroimaging" <neuroimaging at python.org>
> Sent: Tuesday, October 13, 2020 7:03:16 PM
> Subject: [Neuroimaging] dicom to nifti

> 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

> _______________________________________________
> Neuroimaging mailing list
> Neuroimaging at python.org
> https://mail.python.org/mailman/listinfo/neuroimaging
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20201013/4925e04c/attachment.html>


More information about the Neuroimaging mailing list