DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2017-08-19, 04:22

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue, 2014-08-26, 14:30 
Offline

Joined: Fri, 2012-10-12, 08:05
Posts: 16
I've just obtained a trial version of the dcm[c|d]jp2k_e binary and when I'm attempting a "simple" decode from 1.2.4.91 (JPEG2000) I'm getting a jpc_dec_decodepkts failed error response, with JPEG 2000 codec error: decompressing file view0001.dcm failure. When run in verbose mode, I see the license is assigned to me and I've installed all of the pre-requisite libraries (although is there a way of having DCMTK verify them?).

Code:
dcmdjp2k_e -v view0001.dcm test0001.dcm


So, the first hit with a tool was a little anti-climatic.

Any thoughts?


Top
 Profile  
 
PostPosted: Tue, 2014-08-26, 22:50 
Offline

Joined: Fri, 2012-10-12, 08:05
Posts: 16
In the interests of brevity, I'll post the dump just in case anyone sees anything actually within the file that can give me any ideas?
Code:
# Dicom-File-Format

# Dicom-Meta-Information-Header
# Used TransferSyntax: Little Endian Explicit
(0002,0000) UL 248                                      #   4, 1 FileMetaInformationGroupLength
(0002,0001) OB 00\01                                    #   2, 1 FileMetaInformationVersion
(0002,0002) UI =CTImageStorage                          #  26, 1 MediaStorageSOPClassUID
(0002,0003) UI [1.2.840.113704.7.1.1.6232.1233033556.205] #  40, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =JPEG2000                                #  22, 1 TransferSyntaxUID
(0002,0012) UI [1.2.840.113711.9]                       #  16, 1 ImplementationClassUID
(0002,0013) SH [V1.0]                                   #   4, 1 ImplementationVersionName
(0002,0016) AE [ALI_STORE_SCP]                          #  14, 1 SourceApplicationEntityTitle
(0002,0100) UI [1.2.840.113711.9]                       #  16, 1 PrivateInformationCreatorUID
(0002,0102) OB 41\4c\49\20\44\49\43\4f\4d\20\4f\45\4d\20\76\65\72\73\69\6f\6e\20... #  28, 1 PrivateInformation

# Dicom-Data-Set
# Used TransferSyntax: JPEG 2000 (Lossless or Lossy)
(0005,0005) CS [NovaRad 6.0]                            #  12, 1 Unknown Tag & Data
(0005,0006) SS 1                                        #   2, 1 Unknown Tag & Data
(0005,000b) CS [AZ-MVMC]                                #   8, 1 Unknown Tag & Data
(0008,0008) CS [DERIVED\SECONDARY\MPR]                  #  22, 3 ImageType
(0008,0012) DA [20090126]                               #   8, 1 InstanceCreationDate
(0008,0013) TM [221916]                                 #   6, 1 InstanceCreationTime
(0008,0016) UI =CTImageStorage                          #  26, 1 SOPClassUID
(0008,0018) UI [1.2.840.113704.7.1.1.6232.1233033556.205] #  40, 1 SOPInstanceUID
(0008,0020) DA [20090126]                               #   8, 1 StudyDate
(0008,0022) DA [20090126]                               #   8, 1 AcquisitionDate
(0008,0023) DA [20090126]                               #   8, 1 ContentDate
(0008,0030) TM [221111.000000]                          #  14, 1 StudyTime
(0008,0032) TM [221446]                                 #   6, 1 AcquisitionTime
(0008,0033) TM [221111]                                 #   6, 1 ContentTime
(0008,0050) SH [878351]                                 #   6, 1 AccessionNumber
(0008,0060) CS [CT]                                     #   2, 1 Modality
(0008,0070) LO [Philips]                                #   8, 1 Manufacturer
(0008,0080) LO [Mountain Vista]                         #  14, 1 InstitutionName
(0008,0081) ST [Mesa, AZ]                               #   8, 1 InstitutionAddress
(0008,0090) PN (no value available)                     #   0, 0 ReferringPhysicianName
(0008,1010) SH [HOST-9209]                              #  10, 1 StationName
(0008,1030) LO [CT ABDOMEN W CONTRAST]                  #  22, 1 StudyDescription
(0008,103e) LO [CORONAL]                                #   8, 1 SeriesDescription
(0008,1040) LO [Radiology]                              #  10, 1 InstitutionalDepartmentName
(0008,1070) PN [AMH/SB]                                 #   6, 1 OperatorsName
(0008,1090) LO [Brilliance 40]                          #  14, 1 ManufacturerModelName
(0008,1140) SQ (Sequence with undefined length #=2)     # u/l, 1 ReferencedImageSequence
  (fffe,e000) na (Item with undefined length #=2)         # u/l, 1 Item
    (0008,1150) UI =CTImageStorage                          #  26, 1 ReferencedSOPClassUID
    (0008,1155) UI [1.2.840.113704.1.111.2996.1233033117.100953] #  44, 1 ReferencedSOPInstanceUID
  (fffe,e00d) na (ItemDelimitationItem)                   #   0, 0 ItemDelimitationItem
  (fffe,e000) na (Item with undefined length #=2)         # u/l, 1 Item
    (0008,1150) UI =CTImageStorage                          #  26, 1 ReferencedSOPClassUID
    (0008,1155) UI [1.2.840.113704.1.111.2996.1233033149.100954] #  44, 1 ReferencedSOPInstanceUID
  (fffe,e00d) na (ItemDelimitationItem)                   #   0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem)               #   0, 0 SequenceDelimitationItem
(0010,0010) PN [PATIENT^THE]                          #  14, 1 PatientName
(0010,0020) LO [00141772]                               #   8, 1 PatientID
(0010,0030) DA [19350918]                               #   8, 1 PatientBirthDate
(0010,0040) CS [F]                                      #   2, 1 PatientSex
(0010,1010) AS [073Y]                                   #   4, 1 PatientAge
(0018,0010) LO [CONTRAST]                               #   8, 1 ContrastBolusAgent
(0018,0022) CS [HELIX]                                  #   6, 1 ScanOptions
(0018,0050) DS [4]                                      #   2, 1 SliceThickness
(0018,0060) DS [120]                                    #   4, 1 KVP
(0018,0090) DS [500]                                    #   4, 1 DataCollectionDiameter
(0018,1016) LO [Philips]                                #   8, 1 SecondaryCaptureDeviceManufacturer
(0018,1018) LO [MxView]                                 #   6, 1 SecondaryCaptureDeviceManufacturerModelName
(0018,1020) LO [2.3.0]                                  #   6, 1 SoftwareVersions
(0018,1030) LO [ABD/PEL W/Abdomen]                      #  18, 1 ProtocolName
(0018,1100) DS [495]                                    #   4, 1 ReconstructionDiameter
(0018,1120) DS [0]                                      #   2, 1 GantryDetectorTilt
(0018,1130) DS [171]                                    #   4, 1 TableHeight
(0018,1140) CS [CW]                                     #   2, 1 RotationDirection
(0018,1151) IS [337]                                    #   4, 1 XRayTubeCurrent
(0018,1152) IS [289]                                    #   4, 1 Exposure
(0018,1160) SH [B]                                      #   2, 1 FilterType
(0018,1210) SH [B]                                      #   2, 1 ConvolutionKernel
(0018,5100) CS [FFS]                                    #   4, 1 PatientPosition
(0020,000d) UI [1.2.840.113704.1.111.5480.1233033071.1] #  38, 1 StudyInstanceUID
(0020,000e) UI [1.2.840.113704.7.1.1.6232.1233033553.1] #  38, 1 SeriesInstanceUID
(0020,0010) SH [22124]                                  #   6, 1 StudyID
(0020,0011) IS [80232]                                  #   6, 1 SeriesNumber
(0020,0012) IS (no value available)                     #   0, 0 AcquisitionNumber
(0020,0013) IS [58]                                     #   2, 1 InstanceNumber
(0020,0020) CS (no value available)                     #   0, 0 PatientOrientation
(0020,0032) DS [-263.340992\168.22492\-33.2833863]      #  34, 3 ImagePositionPatient
(0020,0037) DS [0.994317113\0.106458815\0\0\0\-1]       #  32, 6 ImageOrientationPatient
(0020,0052) UI [1.2.840.113704.1.111.5480.1233033074.4] #  38, 1 FrameOfReferenceUID
(0020,1040) LO (no value available)                     #   0, 0 PositionReferenceIndicator
(0020,1041) DS [228]                                    #   4, 1 SliceLocation
(0020,4000) LT [CORONAL]                                #   8, 1 ImageComments
(0028,0002) US 1                                        #   2, 1 SamplesPerPixel
(0028,0004) CS [MONOCHROME2]                            #  12, 1 PhotometricInterpretation
(0028,0010) US 512                                      #   2, 1 Rows
(0028,0011) US 512                                      #   2, 1 Columns
(0028,0030) DS [0.966796875\0.966796875]                #  24, 2 PixelSpacing
(0028,0100) US 16                                       #   2, 1 BitsAllocated
(0028,0101) US 12                                       #   2, 1 BitsStored
(0028,0102) US 11                                       #   2, 1 HighBit
(0028,0103) US 0                                        #   2, 1 PixelRepresentation
(0028,1050) DS [50\50]                                  #   6, 2 WindowCenter
(0028,1051) DS [350\350]                                #   8, 2 WindowWidth
(0028,1052) DS [-1024]                                  #   6, 1 RescaleIntercept
(0028,1053) DS [1]                                      #   2, 1 RescaleSlope
(0028,2110) CS [1]                                      #   2, 1 LossyImageCompression
(0028,2112) DS [7.472109]                               #   8, 1 LossyImageCompressionRatio
(0040,0012) LO (no value available)                     #   0, 0 PreMedication
(0040,0253) SH [2212480]                                #   8, 1 PerformedProcedureStepID
(0040,0275) SQ (Sequence with undefined length #=1)     # u/l, 1 RequestAttributesSequence
  (fffe,e000) na (Item with undefined length #=4)         # u/l, 1 Item
    (0040,0007) LO [217]                                    #   4, 1 ScheduledProcedureStepDescription
    (0040,0008) SQ (Sequence with undefined length #=1)     # u/l, 1 ScheduledProtocolCodeSequence
      (fffe,e000) na (Item with undefined length #=3)         # u/l, 1 Item
        (0008,0100) SH (no value available)                     #   0, 0 CodeValue
        (0008,0102) SH (no value available)                     #   0, 0 CodingSchemeDesignator
        (0008,0104) LO (no value available)                     #   0, 0 CodeMeaning
      (fffe,e00d) na (ItemDelimitationItem)                   #   0, 0 ItemDelimitationItem
    (fffe,e0dd) na (SequenceDelimitationItem)               #   0, 0 SequenceDelimitationItem
    (0040,0009) SH [XRJ]                                    #   4, 1 ScheduledProcedureStepID
    (0040,1001) SH (no value available)                     #   0, 0 RequestedProcedureID
  (fffe,e00d) na (ItemDelimitationItem)                   #   0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem)               #   0, 0 SequenceDelimitationItem
(0040,3001) LO (no value available)                     #   0, 0 ConfidentialityConstraintOnPatientDataDescription
(0050,0065) CS [AZ-MVMC]                                #   8, 1 Unknown Tag & Data
(00e1,0010) LO [ELSCINT1]                               #   8, 1 PrivateCreator
(00e1,1014) UN 4e\20                                    #   2, 1 Unknown Tag & Data
(00e1,1022) UN 30\5c\30\20                              #   4, 1 Unknown Tag & Data
(00e1,1023) UN 31\5c\31\20                              #   4, 1 Unknown Tag & Data
(00e1,1040) UN 43\4f\52\4f\4e\41\4c\20                  #   8, 1 Unknown Tag & Data
(07a1,0010) LO [ELSCINT1]                               #   8, 1 PrivateCreator
(07a1,1010) UN 33\2e\35\20                              #   4, 1 Unknown Tag & Data
(3711,0010) LO [A.L.I. Technologies, Inc.]              #  26, 1 PrivateCreator
(3711,100c) UI [1.2.840.113704.1.111.5480.1233033071.1] #  38, 1 Unknown Tag & Data
(7fe0,0010) OB (PixelSequence #=2)                      # u/l, 1 PixelData
  (fffe,e000) pi 00\00\00\00                              #   4, 1 Item
  (fffe,e000) pi ff\4f\ff\51\00\29\00\00\00\00\02\00\00\00\02\00\00\00\00\00\00\00... # 70166, 1 Item
(fffe,e0dd) na (SequenceDelimitationItem)               #   0, 0 SequenceDelimitationItem


Top
 Profile  
 
PostPosted: Wed, 2014-08-27, 11:00 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1572
Location: Oldenburg, Germany
Hi,

please try option "--debug" to get more debug information.

If that does not help finding the problem, send me the file to dicom at offis dot de and I'll do the diagnostics ;)

Best,
Michael


Top
 Profile  
 
PostPosted: Thu, 2014-08-28, 15:58 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Tue, 2004-11-02, 17:22
Posts: 1203
Location: Oldenburg, Germany
The error message actually indicates that the JPEG 2000 decoder found the JPEG 2000 bitstream incorrect and bailed out. That means you've either found a bug in DCMJP2K at your first try, or you have started with a defective image (being the author of the module, I hope for the latter of course :wink:


Top
 Profile  
 
PostPosted: Wed, 2014-09-03, 16:44 
Offline

Joined: Fri, 2012-10-12, 08:05
Posts: 16
Code:
dcmdjp2k_e -v --debug view0001.dcm test1111.dcm
produced the following:
Code:
D: $dcmtk: dcmdjp2k_e v3.6.0 2011-01-27 $
D:
I: reading input file view0001.dcm
D: DcmItem::checkTransferSyntax() TransferSyntax="Little Endian Explicit"
I: decompressing file
D: type = 0xff4f (SOC);
D: type = 0xff51 (SIZ); len = 41;
D: caps = 0x00;
D: width = 512; height = 512; xoff = 0; yoff = 0;
D: tilewidth = 512; tileheight = 512; tilexoff = 0; tileyoff = 0;
D: prec[0] = 16; sgnd[0] = 0; hsamp[0] = 1; vsamp[0] = 1
D: type = 0xff52 (COD); len = 12;
D: csty = 0x00;
D: numdlvls = 8; qmfbid = 1; mctrans = 0
D: prg = 0; numlyrs = 10;
D: cblkwidthval = 4; cblkheightval = 4; cblksty = 0x00;
D: type = 0xff5c (QCD); len = 28;
D: type = 0xff64 (COM); len = 15;
D: regid = 1;
D: data = Kakadu-v4.4
D: type = 0xff64 (COM); len = 276;
D: regid = 1;
D: type = 0xff90 (SOT); len = 10;
D: tileno = 0; len = 3125; partno = 0; numparts = 0
D: type = 0xff58 (UNKNOWN); len = 18;
D: 00
D: 0a
D: 1c
D: 3d
D: 81
D: 12
D: 82
D: 75
D: 85
D: 68
D: 87
D: 62
D: 84
D: 13
D: 81
D: 4c
D: type = 0xff93 (SOD);
D: type = 0xff90 (SOT); len = 10;
D: tileno = 0; len = 1775; partno = 1; numparts = 0
D: type = 0xff58 (UNKNOWN); len = 16;
D: 00
D: 05
D: 01
D: 04
D: 0f
D: 4b
D: 82
D: 14
D: 84
D: 59
D: 84
D: 59
D: 81
D: 25
D: type = 0xff93 (SOD);
D: type = 0xff90 (SOT); len = 10;
D: tileno = 0; len = 5216; partno = 2; numparts = 0
D: type = 0xff58 (UNKNOWN); len = 16;
D: 00
D: 01
D: 06
D: 11
D: 21
D: 68
D: 83
D: 65
D: 8d
D: 42
D: 8d
D: 7b
D: 87
D: 7d
D: type = 0xff93 (SOD);
D: type = 0xff90 (SOT); len = 10;
D: tileno = 0; len = 10532; partno = 3; numparts = 0
D: type = 0xff58 (UNKNOWN); len = 16;
D: 00
D: 01
D: 01
D: 07
D: 2a
D: 7f
D: 83
D: 18
D: 8b
D: 49
D: ad
D: 19
D: 94
D: 58
D: type = 0xff93 (SOD);
D: type = 0xff90 (SOT); len = 10;
D: tileno = 0; len = 4823; partno = 4; numparts = 0
D: type = 0xff58 (UNKNOWN); len = 16;
D: 00
D: 01
D: 01
D: 01
D: 0a
D: 42
D: 81
D: 4a
D: 86
D: 40
D: 95
D: 4a
D: 87
D: 14
D: type = 0xff93 (SOD);
D: type = 0xff90 (SOT); len = 10;
D: tileno = 0; len = 4167; partno = 5; numparts = 0
D: type = 0xff58 (UNKNOWN); len = 15;
D: 00
D: 01
D: 01
D: 01
D: 01
D: 01
D: 41
D: 83
D: 1a
D: 8a
D: 6d
D: 91
D: 5b
D: type = 0xff93 (SOD);
D: type = 0xff90 (SOT); len = 10;
D: tileno = 0; len = 4914; partno = 6; numparts = 0
D: type = 0xff58 (UNKNOWN); len = 14;
D: 00
D: 01
D: 01
D: 01
D: 0b
D: 4c
D: 1f
D: 01
D: 91
D: 28
D: 93
D: 72
D: type = 0xff93 (SOD);
D: type = 0xff90 (SOT); len = 10;
D: tileno = 0; len = 7213; partno = 7; numparts = 0
D: type = 0xff58 (UNKNOWN); len = 14;
D: 00
D: 01
D: 01
D: 01
D: 01
D: 20
D: 67
D: 84
D: 65
D: 02
D: b2
D: 1d
D: type = 0xff93 (SOD);
D: type = 0xff90 (SOT); len = 10;
D: tileno = 0; len = 10421; partno = 8; numparts = 0
D: type = 0xff58 (UNKNOWN); len = 16;
D: 00
D: 01
D: 01
D: 01
D: 01
D: 01
D: 81
D: 66
D: 84
D: 27
D: 9c
D: 2d
D: ae
D: 56
D: type = 0xff93 (SOD);
D: type = 0xff90 (SOT); len = 10;
D: tileno = 0; len = 17596; partno = 9; numparts = 0
D: type = 0xff58 (UNKNOWN); len = 16;
D: 00
D: 01
D: 01
D: 01
D: 01
D: 24
D: 83
D: 1f
D: 88
D: 04
D: 98
D: 3a
D: e5
D: 17
D: type = 0xff93 (SOD);
E: jpc_dec_decodepkts failed
F: JPEG 2000 codec error: decompressing file: view0001.dcm


Looking forward to any comments.... :)


Top
 Profile  
 
PostPosted: Wed, 2014-09-03, 16:47 
Offline

Joined: Fri, 2012-10-12, 08:05
Posts: 16
Marco Eichelberg wrote:
The error message actually indicates that the JPEG 2000 decoder found the JPEG 2000 bitstream incorrect and bailed out. That means you've either found a bug in DCMJP2K at your first try, or you have started with a defective image (being the author of the module, I hope for the latter of course :wink:


I can only assume (and odds are) that it's the latter Marco - and assuming this, I would be very interested in ascertaining where the issue is with the file and how reading the debug, you can ascertain that it's that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group