All other questions regarding DCMTK
Moderator: Moderator Team
alwittta
Posts: 111 Joined: Wed, 2006-03-15, 08:30
#1
Post
by alwittta » Thu, 2008-06-19, 10:35
Dear friends
Could you please tell me what is the meaning of following error:
I am getting this error, when I run the dcmdup application
Code: Select all
D:\CT3S1>dcmdump.exe metadata
DcmItem: Non-standard VR '
' encountered while parsing attribute (0008,0090), assuming 2 byte length field
DcmItem: Non-standard VR 'PA' encountered while parsing attribute (5a41,4f5a), assuming 4 byte length field
DcmItem: Length of attribute (5a41,4f5a) is odd
DcmElement: Unknown Tag & Data(5a41,4f5a) larger (1057169481) that remaining bytes in file
dcmdump: error: Invalid Stream: reading file: metadata
Kindly tell me, how can I fix the problem?
Thanks and Regards
Alvin
Jörg Riesmeier
ICSMED DICOM Services
Posts: 2217 Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany
#2
Post
by Jörg Riesmeier » Thu, 2008-06-19, 16:55
Are you sure that the file contains DICOM data (DICOM Fileformat or Dataset)? At least, the file seems to be corrupted.
alwittta
Posts: 111 Joined: Wed, 2006-03-15, 08:30
#3
Post
by alwittta » Sun, 2008-06-22, 12:32
Dear Jörg
File seems OK, because, I can able to open the file in DicomWorks.
Any clue, where the problem is ?
Thanks and Regards
Alvin
Marco Eichelberg
OFFIS DICOM Team
Posts: 1462 Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:
#4
Post
by Marco Eichelberg » Sun, 2008-06-22, 16:37
The problem is that the dataset is encoded in Explicit VR transfer syntax but contains invalid Value Representations (data types) that are not defined in DICOM. This is a severe problem because the size of the length field depends on the VR and an incorrect guess causes the parser to fail on the rest of the dataset. While DCMTK has a mechanism for "guessing" the size of the length field in such cases, in this specific case the heuristic seems to fail. Other parsers may still be able to read the file, depending on how they treat this problem. Nevertheless the file is not a valid DICOM file.
alwittta
Posts: 111 Joined: Wed, 2006-03-15, 08:30
#5
Post
by alwittta » Sun, 2008-06-22, 16:44
Thanks Marco, for the reply.
Could you please tell me which function is used for "guessing" the size of the length filed - VR?
Thanks and Regards
Alvin
alwittta
Posts: 111 Joined: Wed, 2006-03-15, 08:30
#6
Post
by alwittta » Mon, 2008-06-23, 18:49
Dear friends,
Problem got fixed by using the latest version of DCMTK
Thanks and Regards
Alvin
Jörg Riesmeier
ICSMED DICOM Services
Posts: 2217 Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany
#7
Post
by Jörg Riesmeier » Tue, 2008-06-24, 09:41
And what was the reason for your problem?
File seems OK, because, I can able to open the file in DicomWorks.
This does not mean anything ...
Users browsing this forum: Google [Bot] and 1 guest