-
Notifications
You must be signed in to change notification settings - Fork 637
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DICOM attributes read failure with versions > 5.22.3 #1023
Comments
Seems (0009,1010) does not actual contain a Sequence as the entry
in the private dictionary gems.tpl suggest. You may workaround by removing |
Hi Gunther, Do you think this problem is related to the fact that the data has been wrongly anonyised/deidentified? Or do tou think this can happen in real clinical life? Do you think dcm4che could be able to correct lecture of this tag by forcing use of dictionary VR in stead of VR as written in the file? As if the file would have been written with ImplicitVRLittleEndian? Do you think you will address this 'bug' in a newer dcm4che version? The problem for me is that I need the private dictionaries. BTW really really GREAT you added that s Thanks again and have a nice day |
Yes. Most likely, we will just remove the conflicting entry from the dictionary. Just want to verify the issue with David Clunie, who maintains these dictionaries in his dicom3tools, before. |
Just realized, that the private attribute actually contains a DICOM Sequence, but it is Big Endian instead Little Endian encoded:
Seems the images got corrupted between the modality and the system which stored them to DICOM files. |
I sent you 2 files. One SIEMENS and one Philips. I think you just had a look at the SIEMENS file. |
Looked in both (from Siemens and Philips), both the same. Don't think that Siemens or Philips include GE private attributes into generated objects - so it must have been happened somewhere after |
Ah OK. See what U mean. Yes of course Philips or Siemens using GE tags does not seam to be evidently. |
You may fix that files by trans-coding them to Big Endian using
and trans-coding them back to Little Endian using
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hello,
Please find below, 2 DICOM files (one MR and one CT) that no longer can be read correctly with version 5.22.3,
but no longer with newer versions (> 5.22.3). To reproduce, simply perform a dcm2xml on both files:
For file 1.3.46.670589.11.10175.5.0.5200.2009011701432018188 the output of dcm2xml:
09:26:30,636 WARN - Unrecognized VR code: 0000H for (FEFF,00E0) - treat as LO
09:26:30,636 WARN - Unexpected attribute (FEFF,00E0) #19466 @ 1760
09:26:30,636 WARN - Unrecognized VR code: 0000H for (0000,0000) - treat as UL
09:26:30,636 WARN - Unexpected attribute (0000,0000) #0 @ 21234
09:26:30,637 WARN - Unrecognized VR code: 0000H for (0000,0000) - treat as UL
09:26:30,637 WARN - Unexpected attribute (0000,0000) #0 @ 21242
09:26:30,637 WARN - Unrecognized VR code: 0000H for (0000,0000) - treat as UL
.....
For file 1.3.12.2.1107.5.1.4.54246.30000009011605320221800005700.dcm the output of dcm2xml:
9:27:56,226 WARN - Unrecognized VR code: 0000H for (FEFF,00E0) - treat as LO
09:27:56,227 WARN - Unexpected attribute (FEFF,00E0) #2073 @ 1450
09:27:56,227 WARN - Unrecognized VR code: 1BF0H for (CDBC,E21B) - treat as UN
09:27:56,227 WARN - Unexpected attribute (CDBC,E21B) #997509023 @ 3531
dcm2xml: null
java.io.EOFException
at org.dcm4che3.util.StreamUtils.readFully(StreamUtils.java:74)
at org.dcm4che3.io.DicomInputStream.readFully(DicomInputStream.java:393)
at org.dcm4che3.io.DicomInputStream.readHeader(DicomInputStream.java:426)
at org.dcm4che3.io.DicomInputStream.readHeader(DicomInputStream.java:420)
at org.dcm4che3.io.DicomInputStream.readItemHeader(DicomInputStream.java:461)
at org.dcm4che3.io.DicomInputStream.readSequence(DicomInputStream.java:742)
at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:595)
at org.dcm4che3.io.SAXWriter.readValue(SAXWriter.java:251)
at org.dcm4che3.io.DicomInputStream.readAttributes(DicomInputStream.java:576)
at org.dcm4che3.io.DicomInputStream.readDataset(DicomInputStream.java:503)
at org.dcm4che3.io.DicomInputStream.readDataset(DicomInputStream.java:487)
at org.dcm4che3.tool.dcm2xml.Dcm2Xml.parse(Dcm2Xml.java:305)
at org.dcm4che3.tool.dcm2xml.Dcm2Xml.main(Dcm2Xml.java:221)
DICOM files can be found over here during next 14 days:
https://filebox.olea-medical.com/pickup?claimID=JyrDsPPPMdnGHTk4&claimPasscode=P3X7kwVT6eHvvCHu
Claim ID: JyrDsPPPMdnGHTk4
Claim Passcode: P3X7kwVT6eHvvCHu
Thanks a lot!
Ivo Klaassen
Olea Medical
The text was updated successfully, but these errors were encountered: