Hi,
I have the next file: Original: 1.3.46.670589.30.1.6.1.116520970982.1427540575890.1_0001_000001_142754706229a7.dcm
I load this file with imageenvect, and next I save it to "FILE0.dcm"
link to files: https://www.dropbox.com/s/dc36m37eyd3tfoa/sampledicom.zip?dl=0
I use the next code to save the file:
var ddIm:TImageEnVect;
...
fname := 'FILE0.dcm' ;
ddIm.IO.Params.DICOM_Range:=iedrAdjust;
ddIm.io.SaveToFileDICOM(fname);
Next, I close my app and When I tried read load the FILE0.DCM again into TImageEnvect I get an out of memory error.
If I try to parse the "file0.dcm" with dcm4che I get this log:
08:17:21,300 WARN - Unrecogniced VR code: {0}H - treat as UN 08:17:21,340 WARN - IOException during read of (2001,0010) #1818847312 @ 2614 java.io.EOFException at org.dcm4che3.util.StreamUtils.readFully(StreamUtils.java:63) at org.dcm4che3.io.DicomInputStream.readFully(DicomInputStream.java:383) at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:711) at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:536) at org.dcm4che3.io.DicomInputStream.readAttributes(DicomInputStream.java:497) at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:591) at org.dcm4che3.io.DicomInputStream.readSequence(DicomInputStream.java:648) at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:517) at org.dcm4che3.io.DicomInputStream.readAttributes(DicomInputStream.java:497) at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:591) at org.dcm4che3.io.DicomInputStream.readSequence(DicomInputStream.java:648) at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:517) at org.dcm4che3.io.DicomInputStream.readAttributes(DicomInputStream.java:497) at org.dcm4che3.io.DicomInputStream.readDataset(DicomInputStream.java:425) at org.dcm4che3.tool.dcmdir.DcmDir.addReferenceTo(DcmDir.java:405) at org.dcm4che3.tool.dcmdir.DcmDir.main(DcmDir.java:211)
failed to parse C:\FILE0.DCM: null
Dump of the file0.dcm: C:\dcm4che-3.3.7\bin>dcmdump C:\file0.dcm 0: [0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 132: (0002,0000) UL #4 [198] FileMetaInformationGroupLength 144: (0002,0001) OB #2 [0\1] FileMetaInformationVersion 158: (0002,0002) UI #26 [1.2.840.10008.5.1.4.1.1.1] MediaStorageSOPClassUID 192: (0002,0003) UI #52 [1.3.46.670589.30.1.6.1.116520970982.1427540575781.2] 252: (0002,0010) UI #20 [1.2.840.10008.1.2.1] TransferSyntaxUID 280: (0002,0012) UI #34 [1.2.826.0.1.3680043.2.135.1066.101] ImplementationCla 322: (0002,0013) SH #12 [1.4.16/WIN32] ImplementationVersionName 342: (0008,0000) UL #4 [506] GroupLength 354: (0008,0008) CS #18 [ORIGINAL\PRIMARY\] ImageType 380: (0008,0016) UI #26 [1.2.840.10008.5.1.4.1.1.1] SOPClassUID 414: (0008,0016) UI #24 [1.2.840.10008.3.1.2.3.3] SOPClassUID 446: (0008,0016) UI #28 [1.2.840.10008.5.1.4.1.1.11.1] SOPClassUID 482: (0008,0018) UI #52 [1.3.46.670589.30.1.6.1.116520970982.1427540575781.2] 542: (0008,0018) UI #52 [1.3.46.670589.30.1.6.1.116520970982.1427540449921.1] 602: (0008,0018) UI #52 [1.3.46.670589.30.1.6.1.116520970982.1427540576406.1] 662: (0008,0020) DA #8 [20150328] StudyDate 678: (0008,0021) DA #8 [20150328] SeriesDate 694: (0008,0022) DA #8 [20150328] AcquisitionDate 710: (0008,0023) DA #8 [20150328] ContentDate 726: (0008,0030) TM #14 [110228.375000] StudyTime 748: (0008,0031) TM #14 [110233.000000] SeriesTime 770: (0008,0032) TM #6 [110234] AcquisitionTime 784: (0008,0033) TM #6 [110234] ContentTime 798: (0008,0050) SH #0 [] AccessionNumber 806: (0008,0060) CS #2 [CR] Modality 816: (0008,0070) LO #24 [Philips Medical Systems] Manufacturer 848: (0008,0080) LO #18 [Clinica OrtoCenter] InstitutionName 874: (0008,0081) ST #44 [Estrada dos Tres Rios Rio de Janeiro Brasil] Institut 926: (0008,0090) PN #0 [] ReferringPhysicianName 934: (0008,1010) SH #8 [Direct01] StationName 950: (0008,1030) LO #6 [Ombro] StudyDescription 964: (0008,103E) LO #10 [AP Neutra] SeriesDescription 982: (0008,1040) LO #10 [Radiologia] InstitutionalDepartmentName 1000: (0008,1050) PN #0 [] PerformingPhysicianName 1008: (0008,1070) PN #4 [user] OperatorsName 1020: (0008,1090) LO #12 [Compacto DR] ManufacturerModelName 1040: (0008,1111) SQ #100 ReferencedPerformedProcedureStepSequence 1052: (FFFE,E000) #92 Item #1 1060: >(0008,1150) UI #24 [1.2.840.10008.3.1.2.3.3] ReferencedSOPClassUID 1092: >(0008,1155) UI #52 [1.3.46.670589.30.1.6.1.116520970982.1427540449921.1 1152: (0008,1115) SQ #182 ReferencedSeriesSequence 1164: (FFFE,E000) #174 Item #1 1172: >(0008,1140) SQ #102 ReferencedImageSequence 1184: >(FFFE,E000) #94 Item #1 1192: >>(0008,1150) UI #26 [1.2.840.10008.5.1.4.1.1.1] ReferencedSOPClassUID 1226: >>(0008,1155) UI #52 [1.3.46.670589.30.1.6.1.116520970982.1427540575781. 1286: >(0020,000E) UI #52 [1.3.46.670589.30.1.6.1.116520970982.1427540575890.1 1346: (0010,0000) UL #4 [164] GroupLength 1358: (0010,0010) PN #22 [ANTONIO MAZI DOMINGUES] PatientName 1388: (0010,0020) LO #6 [269321] PatientID 1402: (0010,0030) DA #8 [20150328] PatientBirthDate 1418: (0010,0040) CS #2 [M] PatientSex 1428: (0010,1000) LO #0 [] OtherPatientIDs 1436: (0010,1010) AS #4 [000D] PatientAge 1448: (0010,1020) DS #4 [0.0] PatientSize 1460: (0010,1030) DS #4 [0.0] PatientWeight 1472: (0010,2000) LO #0 [] MedicalAlerts 1480: (0010,2110) LO #0 [] Allergies 1488: (0010,2160) SH #0 [] EthnicGroup 1496: (0010,21B0) LT #0 [] AdditionalPatientHistory 1504: (0010,21C0) US #2 [4] PregnancyStatus 1514: (0010,4000) LT #0 [] PatientComments 1522: (0018,0000) UL #4 [270] GroupLength 1534: (0018,0015) CS #8 [SHOULDER] BodyPartExamined 1550: (0018,0060) DS #4 [0.0] KVP 1562: (0018,1000) LO #12 [116520970982] DeviceSerialNumber 1582: (0018,1020) LO #32 [2.0.0\PMS81.101.1.1 GXR GXRIM7.0] SoftwareVersions 1622: (0018,1030) LO #6 [Ombro] ProtocolName 1636: (0018,1050) DS #6 [0.182] SpatialResolution 1650: (0018,1150) IS #2 [0] ExposureTime 1660: (0018,1152) IS #2 [0] Exposure 1670: (0018,1153) IS #2 [0] ExposureInuAs 1680: (0018,1164) DS #12 [0.182\0.182] ImagerPixelSpacing 1700: (0018,1166) CS #4 [NONE] Grid 1712: (0018,1400) LO #64 [UNIQUE: S:200 L:4.0 FB d:1 g:1,37 sb:4,19 eq:1 nr:0 1784: (0018,1405) IS #4 [122] RelativeXRayExposure 1796: (0018,5101) CS #0 [] ViewPosition 1804: (0020,0000) UL #4 [176] GroupLength 1816: (0020,000D) UI #52 [1.3.46.670589.30.1.6.1.116520970982.1427540418156.1] 1876: (0020,000E) UI #52 [1.3.46.670589.30.1.6.1.116520970982.1427540575890.1] 1936: (0020,0010) SH #12 [S-I7SWPG8C.1] StudyID 1956: (0020,0011) IS #2 [1] SeriesNumber 1966: (0020,0013) IS #2 [1] InstanceNumber 1976: (0020,0013) IS #2 [1] InstanceNumber 1986: (0020,0020) CS #0 [] PatientOrientation 1994: (0020,0060) CS #0 [] Laterality 2002: (0028,0000) UL #4 [222] GroupLength 2014: (0028,0002) US #2 [1] SamplesPerPixel 2024: (0028,0004) CS #12 [MONOCHROME2] PhotometricInterpretation 2044: (0028,0006) US #2 [0] PlanarConfiguration 2054: (0028,0008) IS #2 [1] NumberOfFrames 2064: (0028,0010) US #2 [2350] Rows 2074: (0028,0011) US #2 [1893] Columns 2084: (0028,0030) DS #32 [0.1730654545455\0.1730654545455] PixelSpacing 2124: (0028,0100) US #2 [16] BitsAllocated 2134: (0028,0101) US #2 [16] BitsStored 2144: (0028,0102) US #2 [11] HighBit 2154: (0028,0103) US #2 [0] PixelRepresentation 2164: (0028,0300) CS #2 [NO] QualityControlImage 2174: (0028,0301) CS #2 [NO] BurnedInAnnotation 2184: (0028,1054) LO #2 [US] RescaleType 2194: (0028,2110) CS #2 [00] LossyImageCompression 2204: (0032,0000) UL #4 [24] GroupLength 2216: (0032,1032) PN #0 [] RequestingPhysician 2224: (0032,1033) LO #0 [] RequestingService 2232: (0032,1060) LO #0 [] RequestedProcedureDescription 2240: (0038,0000) UL #4 [16] GroupLength 2252: (0038,0050) LO #0 [] SpecialNeeds 2260: (0038,0500) LO #0 [] PatientState 2268: (0040,0000) UL #4 [184] GroupLength 2280: (0040,0241) AE #6 [Eleva] PerformedStationAETitle 2294: (0040,0244) DA #8 [20150328] PerformedProcedureStepStartDate 2310: (0040,0245) TM #14 [110228.375000] PerformedProcedureStepStartTime 2332: (0040,0252) CS #0 [] PerformedProcedureStepStatus 2340: (0040,0253) SH #12 [E-I7SWQ4QP.1] PerformedProcedureStepID 2360: (0040,0254) LO #6 [Ombro] PerformedProcedureStepDescription 2374: (0040,0301) US #2 [1] TotalNumberOfExposures 2384: (0040,0321) SQ #0 FilmConsumptionSequence 2396: (0040,1001) SH #0 [] RequestedProcedureID 2404: (0040,1002) LO #0 [] ReasonForTheRequestedProcedure 2412: (0040,1003) SH #0 [] RequestedProcedurePriority 2420: (0040,1004) LO #0 [] PatientTransportArrangements 2428: (0040,1010) PN #0 [] NamesOfIntendedRecipientsOfResults 2436: (0040,1400) LT #0 [] RequestedProcedureComments 2444: (0040,2001) LO #0 [] ReasonForTheImagingServiceRequest 2452: (0040,2004) DA #0 [] IssueDateOfImagingServiceRequest 2460: (0040,2400) LT #0 [] ImagingServiceRequestComments 2468: (0070,0001) SQ #190 GraphicAnnotationSequence 2480: (FFFE,E000) #182 Item #1 2488: >(0070,0002) CS #16 [ANNOTATION_LAYER] GraphicLayer 2512: >(0070,0008) SQ #146 TextObjectSequence 2524: >(FFFE,E000) #138 Item #1 2532: >>(0070,0004) CS #6 [PIXEL] AnchorPointAnnotationUnits 2546: >>(0070,0006) ST #2 [D] UnformattedTextValue 2556: >>(0070,0010) FL #8 [532.039\576.3286] BoundingBoxTopLeftHandCorner 2572: >>(0070,0011) FL #8 [591.039\647.3286] BoundingBoxBottomRightHandCorner 2588: >>(0070,0014) FL #8 [0.29663974\0.2603526] AnchorPoint 2604: >>(0070,0015) CS #2 [N] AnchorPointVisibility 08:35:48,528 WARN - Unrecogniced VR code: {0}H - treat as UN 08:35:48,569 WARN - IOException during read of (2001,0010) #1818847312 @ 2614 java.io.EOFException at org.dcm4che3.util.StreamUtils.readFully(StreamUtils.java:63) at org.dcm4che3.io.DicomInputStream.readFully(DicomInputStream.java:383)
at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:711)
at org.dcm4che3.tool.dcmdump.DcmDump.readValue(DcmDump.java:122) at org.dcm4che3.io.DicomInputStream.readAttributes(DicomInputStream.java :497) at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:591)
at org.dcm4che3.tool.dcmdump.DcmDump.readValue(DcmDump.java:149) at org.dcm4che3.io.DicomInputStream.readSequence(DicomInputStream.java:6 48) at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:517)
at org.dcm4che3.tool.dcmdump.DcmDump.readValue(DcmDump.java:111) at org.dcm4che3.io.DicomInputStream.readAttributes(DicomInputStream.java :497) at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:591)
at org.dcm4che3.tool.dcmdump.DcmDump.readValue(DcmDump.java:149) at org.dcm4che3.io.DicomInputStream.readSequence(DicomInputStream.java:6 48) at org.dcm4che3.io.DicomInputStream.readValue(DicomInputStream.java:517)
at org.dcm4che3.tool.dcmdump.DcmDump.readValue(DcmDump.java:111) at org.dcm4che3.io.DicomInputStream.readAttributes(DicomInputStream.java :497) at org.dcm4che3.io.DicomInputStream.readDataset(DicomInputStream.java:42 5) at org.dcm4che3.tool.dcmdump.DcmDump.parse(DcmDump.java:87) at org.dcm4che3.tool.dcmdump.DcmDump.main(DcmDump.java:245) dcmdump: null
|