I am writing Visaul C++ 2003 Code using DCMTK 3.5.4 and everything seemed to be going great, until I tried to create a 3D file using some pre-standard stuff. The multi-frame that i create is just fantastic, and is viewed just fine. The code I created to recurse and add the files to the DICOMDIR works just great, with sub directories and everything.
Then I wrote code to take teh 3D file and spew each of the slices out as an individual DICOM File, so that some of the 3D Viewers like TView can use the DICOM Files. But when i try to use the Command Line
dcmmkdir -Pgp -v -d SL*
I get the error Error: LittleEndianExplicit expected: SL00026
But the DICOMDIR that was created by my application does have the reference and thumbnail image for this file !!
The dcmdump of this file looks like this
# Dicom-File-Format
# Dicom-Meta-Information-Header
# Used TransferSyntax: LittleEndianExplicit
(0002,0000) UL 196 # 4, 1 MetaElementGroupLength
(0002,0001) OB 00\01 # 2, 1 FileMetaInformationVersion
(0002,0002) UI =UltrasoundImageStorage # 28, 1 MediaStorageSOPClassUID
(0002,0003) UI [1.2.826.0.1.3680043.8.1.2.826.0.1.3680043.8.158.1.4.2638767787.5] # 64, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =JPEGLossless:Non-hierarchical-1stOrderPrediction # 22, 1 TransferSyntaxUID
(0002,0012) UI [999.999.1.0.3.5.3] # 18, 1 ImplementationClassUID
(0002,0013) SH [EIGEN_353] # 10, 1 ImplementationVersionName
# Dicom-Data-Set
# Used TransferSyntax: JPEG Lossless, Non-hierarchical, 1st Order Prediction
(0008,0008) CS [DERIVED\ENDORECTAL\0040] # 24, 3 ImageType
(0008,0016) UI =UltrasoundImageStorage # 28, 1 SOPClassUID
(0008,0018) UI [1.2.826.0.1.3680043.8.1.2.826.0.1.3680043.8.158.1.4.2638767787.5] # 64, 1 SOPInstanceUID
(0008,0020) DA [20070710] # 8, 1 StudyDate
(0008,0021) DA [20070710] # 8, 1 SeriesDate
(0008,0023) DA [20070710] # 8, 1 ContentDate
(0008,0030) TM [164309] # 6, 1 StudyTime
(0008,0031) TM [164309] # 6, 1 SeriesTime
(0008,0033) TM [164309] # 6, 1 ContentTime
(0008,0050) SH [Acc20070629] # 12, 1 AccessionNumber
(0008,0060) CS [US] # 2, 1 Modality
(0008,0070) LO [ManufEiGEN] # 10, 1 Manufacturer
(0008,0090) PN (no value available) # 0, 0 ReferringPhysiciansName
(0008,1050) PN [orming^Perf^Doc] # 16, 1 PerformingPhysiciansName
(0008,1090) LO [ModWal] # 6, 1 ManufacturersModelName
(0010,0010) PN [PatientLast^PatFirst^PatientMid^PatSufx] # 40, 1 PatientsName
(0010,0020) LO [HospID12] # 8, 1 PatientID
(0010,0030) DA [19651123] # 8, 1 PatientsBirthDate
(0010,0040) CS [M] # 2, 1 PatientsSex
(0018,1000) LO [109] # 4, 1 DeviceSerialNumber
(0018,1020) LO [2134] # 4, 1 SoftwareVersions
(0020,000d) UI [999.999.1.0.3.5.3.2007710.164316] # 32, 1 StudyInstanceUID
(0020,000e) UI [999.999.1.0.3.5.3.2007710.164316.1] # 34, 1 SeriesInstanceUID
(0020,0010) SH [ColStud] # 8, 1 StudyID
(0020,0011) IS [88] # 2, 1 SeriesNumber
(0020,0013) IS [1] # 2, 1 InstanceNumber
(0020,0020) CS (no value available) # 0, 0 PatientOrientation
(0020,4000) LT (no value available) # 0, 0 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,0034) IS [1000\1000] # 10, 2 PixelAspectRatio
(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,1050) DS [128] # 4, 1 WindowCenter
(0028,1051) DS [256] # 4, 1 WindowWidth
(1129,0010) LO [EiGENMedicalLLC] # 16, 1 PrivateCreator
(1129,1001) IS (no value available) # 0, 0 Unknown Tag & Data
(1129,1002) IS (no value available) # 0, 0 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\d8\ff\e0\00\10\4a\46\49\46\00\01\01\00\00\01\00\01\00\00\ff\c3... # 35238, 1 Item
(fffe,e0dd) na (SequenceDelimitationItem) # 0, 0 SequenceDelimitationItem
What can i do in my code to make this file work with the command line dcmmkdir ?
DICOM Files not VR Little Endian Explicit: How to Fix ?
Moderator: Moderator Team
-
- OFFIS DICOM Team
- Posts: 1445
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
The error message indicates that according to the media storage application profile you are using (which is STD-GEN-CD in your case), all DICOM objects referenced by the DICOMDIR should be encoded in Explicit VR Little Endian transfer syntax - and obviously your image objects are not. This does not mean that dcmmkdir cannot read your image files, it just means that the encoding of the image files is not permitted on the type of CD for which you are trying to generate a DICOMDIR.
Managed to Find dcmmkdir Arguments that work
I managed to find dcmmkdir arguments that work
In this -Pdv does not complain , and actually incorporate a thumbanail image into the DICOMDIR.
In this -Pdv does not complain , and actually incorporate a thumbanail image into the DICOMDIR.
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest