calling dicom.read_file(thisfile) causes InvalidDicomError: The specified file is not a valid DICOM file.
I need to convert some image data to the convenient format of my choice (in this case, my lab needs this in NRRD format) and found fetchDICOM and pydicom couldn't read it. I played with the bits to get the image data I need, but thought it might be helpful for others (as well as myself of course) if this were readable.
I'm not 100% confident that I have anonymized all identifying data, so I'd prefer not to post it here at this point. Perhaps I could email it to someone and they could confirm that I've correctly anonymized the file? Because I can't properly read the header and my knowledge of dicom headers is pretty limited, I don't know if there are some fields stored with an encoding I couldn't find to edit out.
From ThomasBallinger on February 19, 2011 09:50:38
calling dicom.read_file(thisfile) causes InvalidDicomError: The specified file is not a valid DICOM file.
I need to convert some image data to the convenient format of my choice (in this case, my lab needs this in NRRD format) and found fetchDICOM and pydicom couldn't read it. I played with the bits to get the image data I need, but thought it might be helpful for others (as well as myself of course) if this were readable.
I'm not 100% confident that I have anonymized all identifying data, so I'd prefer not to post it here at this point. Perhaps I could email it to someone and they could confirm that I've correctly anonymized the file? Because I can't properly read the header and my knowledge of dicom headers is pretty limited, I don't know if there are some fields stored with an encoding I couldn't find to edit out.
Original issue: http://code.google.com/p/pydicom/issues/detail?id=100