Pixel data larger than remaining data in file

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
nikkoara
Posts: 18
Joined: Wed, 2014-02-19, 14:31

Pixel data larger than remaining data in file

#1 Post by nikkoara »

I have a number of DICOM files that all exhibit the same problem and fail processing with dcm2xml, dcmj2pnm, etc. Any help in understanding the issue is greatly appreciated. Thanks!

The error is:

Code: Select all

$ dcm2xml t.dicom
E: DcmElement: Item (fffe,e000) larger (53242) than remaining bytes in file
E: dcm2xml: error (I/O suspension or premature end of stream) reading file: t.dicom
The dump shows:

Code: Select all

E: DcmElement: Item (fffe,e000) larger (53242) than remaining bytes in file
E: dcmdump: I/O suspension or premature end of stream: reading file: t.dicom
E: DcmElement: Item (fffe,e000) larger (53242) than remaining bytes (1347) in file, premature end of stream

Code: Select all

# Dicom-File-Format

# Dicom-Meta-Information-Header
# Used TransferSyntax: Little Endian Explicit
(0002,0000) UL 224                                      #   4, 1 FileMetaInformationGroupLength
(0002,0001) OB 00\01                                    #   2, 1 FileMetaInformationVersion
(0002,0002) UI =UltrasoundMultiframeImageStorage        #  28, 1 MediaStorageSOPClassUID
(0002,0003) UI [1.2.840.113663.1500.1.393051522.3.2.20150731.90959.913] #  54, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =JPEGBaseline                            #  22, 1 TransferSyntaxUID
(0002,0012) UI [1.2.276.0.7230010.3.0.3.6.1]            #  28, 1 ImplementationClassUID
(0002,0013) SH [OFFIS_DCMTK_361]                        #  16, 1 ImplementationVersionName
(0002,0016) AE [INTURISPRO_SCU]                         #  14, 1 SourceApplicationEntityTitle

# Dicom-Data-Set
# Used TransferSyntax: JPEG Baseline
(0008,0005) CS [ISO_IR 100]                             #  10, 1 SpecificCharacterSet
(0008,0008) CS [DERIVED\PRIMARY\CARDIOLOGY]             #  26, 3 ImageType
(0008,0012) DA [20150731]                               #   8, 1 InstanceCreationDate
(0008,0013) TM [090959]                                 #   6, 1 InstanceCreationTime
(0008,0016) UI =UltrasoundMultiframeImageStorage        #  28, 1 SOPClassUID
(0008,0018) UI [1.2.840.113663.1500.1.393051522.3.2.20150731.90959.913] #  54, 1 SOPInstanceUID
(0008,0020) DA [20150731]                               #   8, 1 StudyDate
(0008,0021) DA [20150731]                               #   8, 1 SeriesDate
(0008,0023) DA [20150731]                               #   8, 1 ContentDate
(0008,002a) DT [20150731090957]                         #  14, 1 AcquisitionDateTime
(0008,0030) TM [090756]                                 #   6, 1 StudyTime
(0008,0031) TM [090756]                                 #   6, 1 SeriesTime
(0008,0033) TM [090959]                                 #   6, 1 ContentTime
(0008,0050) SH [0000000]                                #   8, 1 AccessionNumber
(0008,0060) CS [US]                                     #   2, 1 Modality
(0008,0068) CS [FOR PRESENTATION]                       #  16, 1 PresentationIntentType
(0008,0070) LO [Philips Medical Systems]                #  24, 1 Manufacturer
(0008,0080) LO [XXXXXXXXXXXXXXXXXXXXXXXXXX]             #  26, 1 InstitutionName
(0008,0090) PN [XXX^ XXXXXX]                            #  12, 1 ReferringPhysicianName
(0008,1010) SH (no value available)                     #   0, 0 StationName
(0008,1030) LO [Adult]                                  #   6, 1 StudyDescription
(0008,1032) SQ (Sequence with explicit length #=1)      #  52, 1 ProcedureCodeSequence
  (fffe,e000) na (Item with explicit length #=3)          #  44, 1 Item
    (0008,0100) SH [100]                                    #   4, 1 CodeValue
    (0008,0102) SH [RP]                                     #   2, 1 CodingSchemeDesignator
    (0008,0104) LO [Echocardiogram]                         #  14, 1 CodeMeaning
  (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
(0008,103e) LO [Echocardiogram]                         #  14, 1 SeriesDescription
(0008,1050) PN [Xxxxxxxxxx, Xxxxxxxx]                   #  20, 1 PerformingPhysicianName
(0008,1060) PN [Xxxxxxxxxxx, Xxxxxxxxxx]                #  24, 1 NameOfPhysiciansReadingStudy
(0008,1070) PN [XX^^^^]                                 #   6, 1 OperatorsName
(0008,1080) LO (no value available)                     #   0, 0 AdmittingDiagnosesDescription
(0008,1090) LO [EPIQ 7C]                                #   8, 1 ManufacturerModelName
(0008,1110) SQ (Sequence with explicit length #=1)      # 102, 1 ReferencedStudySequence
  (fffe,e000) na (Item with explicit length #=2)          #  94, 1 Item
    (0008,1150) UI =RETIRED_DetachedStudyManagementSOPClass #  24, 1 ReferencedSOPClassUID
    (0008,1155) UI [1.2.124.113532.25.47566.22590.20150729.101206.2412396] #  54, 1 ReferencedSOPInstanceUID
  (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
(0008,1111) SQ (Sequence with explicit length #=1)      # 102, 1 ReferencedPerformedProcedureStepSequence
  (fffe,e000) na (Item with explicit length #=2)          #  94, 1 Item
    (0008,1150) UI =ModalityPerformedProcedureStepSOPClass  #  24, 1 ReferencedSOPClassUID
    (0008,1155) UI [1.2.840.113663.1500.1.393051522.5.1.20150731.90756.139] #  54, 1 ReferencedSOPInstanceUID
  (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
(0008,1120) SQ (Sequence with explicit length #=1)      # 102, 1 ReferencedPatientSequence
  (fffe,e000) na (Item with explicit length #=2)          #  94, 1 Item
    (0008,1150) UI =RETIRED_DetachedPatientManagementSOPClass #  24, 1 ReferencedSOPClassUID
    (0008,1155) UI [1.2.124.113532.25.47566.22590.20091130.110842.2311898] #  54, 1 ReferencedSOPInstanceUID
  (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
(0008,2111) ST [79]                                     #   2, 1 DerivationDescription
(0008,2144) IS [30]                                     #   2, 1 RecommendedDisplayFrameRate
(0010,0010) PN [XXXXX^XXXXXXX]                          #  14, 1 PatientName
(0010,0020) LO [001101375]                              #  10, 1 PatientID
(0010,0021) LO [Default Institution]                    #  20, 1 IssuerOfPatientID
(0010,0030) DA [19300305]                               #   8, 1 PatientBirthDate
(0010,0040) CS [F]                                      #   2, 1 PatientSex
(0010,4000) LT (no value available)                     #   0, 0 PatientComments
(0018,0040) IS [30]                                     #   2, 1 CineRate
(0018,1000) LO [393051522]                              #  10, 1 DeviceSerialNumber
(0018,1020) LO [EPIQ 7C_1.3.1.2578]                     #  18, 1 SoftwareVersions
(0018,1030) LO [Free Form]                              #  10, 1 ProtocolName
(0018,1063) DS [33.333]                                 #   6, 1 FrameTime
(0018,1088) IS [74]                                     #   2, 1 HeartRate
(0018,5010) LO [X5_1\\]                                 #   6, 3 TransducerData
(0018,5020) LO [CARD_ADULT_GEN_CV]                      #  18, 1 ProcessingFunction
(0018,6011) SQ (Sequence with explicit length #=1)      # 140, 1 SequenceOfUltrasoundRegions
  (fffe,e000) na (Item with explicit length #=11)         # 132, 1 Item
    (0018,6012) US 1                                        #   2, 1 RegionSpatialFormat
    (0018,6014) US 1                                        #   2, 1 RegionDataType
    (0018,6016) UL 2                                        #   4, 1 RegionFlags
    (0018,6018) UL 10                                       #   4, 1 RegionLocationMinX0
    (0018,601a) UL 31                                       #   4, 1 RegionLocationMinY0
    (0018,601c) UL 788                                      #   4, 1 RegionLocationMaxX1
    (0018,601e) UL 592                                      #   4, 1 RegionLocationMaxY1
    (0018,6024) US 3                                        #   2, 1 PhysicalUnitsXDirection
    (0018,6026) US 3                                        #   2, 1 PhysicalUnitsYDirection
    (0018,602c) FD 0.030585482978849949                     #   8, 1 PhysicalDeltaX
    (0018,602e) FD 0.030585482978849949                     #   8, 1 PhysicalDeltaY
  (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
(0020,000d) UI [1.2.124.113532.25.47566.22590.20150729.101206.2412396] #  54, 1 StudyInstanceUID
(0020,000e) UI [1.2.840.113663.1500.1.393051522.2.1.20150731.90756.139] #  54, 1 SeriesInstanceUID
(0020,0010) SH [8321693]                                #   8, 1 StudyID
(0020,0011) IS [1]                                      #   2, 1 SeriesNumber
(0020,0013) IS [2]                                      #   2, 1 InstanceNumber
(0028,0002) US 3                                        #   2, 1 SamplesPerPixel
(0028,0004) CS [YBR_FULL_422]                           #  12, 1 PhotometricInterpretation
(0028,0006) US 0                                        #   2, 1 PlanarConfiguration
(0028,0008) IS [50]                                     #   2, 1 NumberOfFrames
(0028,0009) AT (0018,1063)                              #   4, 1 FrameIncrementPointer
(0028,0010) US 600                                      #   2, 1 Rows
(0028,0011) US 800                                      #   2, 1 Columns
(0028,0014) US 0                                        #   2, 1 UltrasoundColorDataPresent
(0028,0100) US 8                                        #   2, 1 BitsAllocated
(0028,0101) US 8                                        #   2, 1 BitsStored
(0028,0102) US 7                                        #   2, 1 HighBit
(0028,0103) US 0                                        #   2, 1 PixelRepresentation
(0028,0301) CS [YES]                                    #   4, 1 BurnedInAnnotation
(0028,2110) CS [01]                                     #   2, 1 LossyImageCompression
(0028,2112) DS [100]                                    #   4, 1 LossyImageCompressionRatio
(0028,2114) CS [ISO_10918_1]                            #  12, 1 LossyImageCompressionMethod
(0032,1032) PN (no value available)                     #   0, 0 RequestingPhysician
(0040,0244) DA [20150731]                               #   8, 1 PerformedProcedureStepStartDate
(0040,0245) TM [090756]                                 #   6, 1 PerformedProcedureStepStartTime
(0040,0253) SH [20150731.090756]                        #  16, 1 PerformedProcedureStepID
(0040,0254) LO [Echocardiogram]                         #  14, 1 PerformedProcedureStepDescription
(0040,0260) SQ (Sequence with explicit length #=1)      #  52, 1 PerformedProtocolCodeSequence
  (fffe,e000) na (Item with explicit length #=3)          #  44, 1 Item
    (0008,0100) SH [100]                                    #   4, 1 CodeValue
    (0008,0102) SH [SA]                                     #   2, 1 CodingSchemeDesignator
    (0008,0104) LO [Echocardiogram]                         #  14, 1 CodeMeaning
  (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
(0040,0275) SQ (Sequence with explicit length #=1)      # 212, 1 RequestAttributesSequence
  (fffe,e000) na (Item with explicit length #=6)          # 204, 1 Item
    (0032,1060) LO [Echocardiogram]                         #  14, 1 RequestedProcedureDescription
    (0040,0007) LO [Echocardiogram]                         #  14, 1 ScheduledProcedureStepDescription
    (0040,0008) SQ (Sequence with explicit length #=1)      #  52, 1 ScheduledProtocolCodeSequence
      (fffe,e000) na (Item with explicit length #=3)          #  44, 1 Item
        (0008,0100) SH [100]                                    #   4, 1 CodeValue
        (0008,0102) SH [SA]                                     #   2, 1 CodingSchemeDesignator
        (0008,0104) LO [Echocardiogram]                         #  14, 1 CodeMeaning
      (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
    (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
    (0040,0009) SH [8321693]                                #   8, 1 ScheduledProcedureStepID
    (0040,0260) SQ (Sequence with explicit length #=1)      #  52, 1 PerformedProtocolCodeSequence
      (fffe,e000) na (Item with explicit length #=3)          #  44, 1 Item
        (0008,0100) SH [100]                                    #   4, 1 CodeValue
        (0008,0102) SH [SA]                                     #   2, 1 CodingSchemeDesignator
        (0008,0104) LO [Echocardiogram]                         #  14, 1 CodeMeaning
      (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
    (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
    (0040,1001) SH [8321693]                                #   8, 1 RequestedProcedureID
  (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
(0040,0280) ST [Adult Echo]                             #  10, 1 CommentsOnThePerformedProcedureStep
(300e,0008) PN [Xxxxxxxxxxx, Xxxxxxxxxx]                #  24, 1 ReviewerName
(7fe0,0010) OB (PixelSequence #=2)                      # u/l, 1 PixelData
  (fffe,e000) pi 00\00\00\00\02\d0\00\00\fa\9f\01\00\ca\6f\02\00\92\3f\03\00\b8\0d... # 200, 1 Item
  (fffe,e000) pi ff\d8\ff\e0\00\10\4a\46\49\46\00\01\01\00\00\01\00\01\00\00\ff\fe... # 53242, 1 Item
(fffe,e0dd) na (SequenceDelimitationItem)               #   0, 0 SequenceDelimitationItem

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Pixel data larger than remaining data in file

#2 Post by J. Riesmeier »

It seems that the length field of one of the pixel items (at the end of the file) is incorrect.

nikkoara
Posts: 18
Joined: Wed, 2014-02-19, 14:31

Re: Pixel data larger than remaining data in file

#3 Post by nikkoara »

It seems so, but then OsiriX Lite displays the (some?) images from these files. In a few cases the images look like calibration images of sort: grids, shades of gray, etc. So, basically, I have a 4K DICOM file which OsiriX decodes and shows 50 frames for it. I don't know what to make of it, at all.

Any chance you could take a look at this one file and perhaps try to explain how I should handle it? Thanks.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest