[Dcmlib] Probably a stupid mistake of mine

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Aug 9 11:57:51 CEST 2007


ok I do not have access to a VS6 compiler right now. Hopefully by the
end of the week. Is there any chance you could try another compiler, I
really do not understand what is going wrong.

The other you could try is to use a release version of gdcm (such as 1.2.X).

HTH
-Mathieu

On 8/7/07, Andreas Wimmer <Andreas.Wimmer at gmx.ch> wrote:
>  >
>  > Hi Andreas,
>  >
>  >   Sorry the two main contributors to GDCM were on vacation. Anyway I
>  > am back. could you please send me this test.dcm file for inspection ?
>  >
>  > Thanks
>  > -Mathieu
>  >
>
>
> Hi Mathieu,
>
> thank you very much for your reply!
>
> Unfortunately I could not reach the person who is in charge of the DICOM
> file I used for testing, so I don't know if I can distribute the file.
> I could of course anonymize certain tags, but I think the original file
> should be preserved for testing. I did, however, encounter the same problem
> also with DICOM test files supplied in the "gdcmData.tar.gz" archive available
> at "http://www.creatis.insa-lyon.fr/~jpr/PUBLIC/gdcm/gdcmData.tar.gz".
>
> I randomly picked "3E768EB7.dcm", "CT_16b_signed-UsedBits13.dcm", and
> "CR-MONO1-10-chest.dcm". Only the last file was readable, as the output
> below shows. My "test.dcm" file is 512x512 unsigned 16 Bit CT (12 Bit stored,
> high Bit 11) and works fine with the GDCM version packed with itk 3.2.
>
> In addition, I also ran the test project included in the GDCM project:
>
> 61% tests passed, 11 tests failed out of 28
> The following tests FAILED:
>    11 - TestWriteSimple (Failed)
>    12 - TestImageSet (Failed)
>    16 - TestFileAccessors (Failed)
>    17 - TestMakeIcon (Failed)
>    19 - TestPrintAllDocument (Failed)
>    20 - TestAllReadCompareDicom (Failed)
>    21 - TestReadWriteReadCompare (Failed)
>    23 - TestDicomDir (Failed)
>    24 - TestBuildUpDicomDir (Failed)
>    25 - TestMakeDicomDir (Failed)
>    27 - TestAllVM (SEGFAULT)
> Errors while running CTest
> Error executing c:\winnt\system32\cmd.exe.
>
> RUN_TESTS - 1 error(s), 0 warning(s)
>
> As indicated in my first e-mail, I'm using Visual C++ 6 with SP 6 and
> GDCM 1.3.1. I did not have a single warning when compiling GDCM.
>
> Thank you very much in advance!
>
> Best regards,
> Andreas
>
>
> ===============================================================================
> Output for the three test files
> ===============================================================================
>
> D:\gdcm\bin\Debug>PrintFile.exe filein=3E768EB7.dcm
> D 0002|0000 [UL]                                                       [Group Le
> ngth] [gdcm::NotLoaded]
>
>
>
>
>   dataSize    0
>   dataSizeRaw 0
>   DIMX=0 DIMY=1 DIMZ=1 DIMT=1
>   pixelType= [16U] SamplesPerPixel= [1]  PhotometricInterpretation= [gdcm::Unfoun
> d]
>   NumberOfScalarComponents = 1
>   LUT = FALSE
>   TransferSyntaxName= [Uncompressed ACR-NEMA]
>   SwapCode= 1234
>   ------
>
>
>
> X spacing 1
> Y spacing 1
> Z spacing 1
> Image Position (0x0020,0x0032|0x0030) : 0 , 0 , 0
> Image Orientation (0x0020,0x0037|0x0035) : 1 , 0 , 0 , 0 , 1 , 0
> Orientation [gdcm::Unfound]
>
> 3E768EB7.dcm doesn't look like an image file
>
> ====================================================================================
>
> D:\gdcm\bin\Debug>PrintFile.exe filein=CT_16b_signed-UsedBits13.dcm
> D 0002|0000 [UL]                                                       [Group Le
> ngth] [gdcm::NotLoaded]
> D 0076|0061 [  ]                                                      [gdcm::Unk
> nown] [gdcm::NotLoaded]
>
>
>
>
>   dataSize    0
>   dataSizeRaw 0
>   DIMX=0 DIMY=1 DIMZ=1 DIMT=1
>   pixelType= [16U] SamplesPerPixel= [1]  PhotometricInterpretation= [gdcm::Unfoun
> d]
>   NumberOfScalarComponents = 1
>   LUT = FALSE
>   TransferSyntaxName= [Uncompressed ACR-NEMA]
>   SwapCode= 4321
>   ------
>
>
>
> X spacing 1
> Y spacing 1
> Z spacing 1
> Image Position (0x0020,0x0032|0x0030) : 0 , 0 , 0
> Image Orientation (0x0020,0x0037|0x0035) : 1 , 0 , 0 , 0 , 1 , 0
> Orientation [gdcm::Unfound]
>
> CT_16b_signed-UsedBits13.dcm doesn't look like an image file
>
> ====================================================================================
>
> D:\gdcm\bin\Debug>PrintFile.exe filein=CR-MONO1-10-chest.dcm
> D 0008|0000 [UL]                                                       [Group Le
> ngth] [286]
> D 0008|0008 [CS]                                                         [Image
> Type] [ORIGINAL PRIMARY]
> D 0008|0012 [DA]                                             [Instance Creation
> Date] [1995.07.20]
> D 0008|0013 [TM]                                             [Instance Creation
> Time] [11:22:07]
> D 0008|0016 [UI]                                                      [SOP Class
>   UID] [1.2.840.10008.5.1.4.1.1.1 ]  ==> [Computed Radiography Image Storage]
> D 0008|0018 [UI]                                                   [SOP Instance
>   UID] [1.2.392.200036.9125.0.19950720112207]
> D 0008|0022 [DA]                                                   [Acquisition
> Date] [1993.02.24]
> D 0008|0032 [TM]                                                   [Acquisition
> Time] [17:58:00]
> D 0008|0050 [SH]                                                   [Accession Nu
> mber] [FUJI95714 ]
> D 0008|0060 [CS]                                                           [Moda
> lity] [CR]
> D 0008|0070 [LO]                                                       [Manufact
> urer] [FUJI PHOTO FILM CO. LTD.]
> D 0008|0080 [LO]                                                   [Institution
> Name] [FUJI PHOTO FILM CO.,]
> D 0008|1040 [LO]                                      [Institutional Department
> Name] [!!!!!!!!]
> D 0008|1090 [LO]                                          [Manufacturer's Model
> Name] [9000]
> D 0010|0000 [UL]                                                       [Group Le
> ngth] [18]
> D 0010|0010 [PN]                                                     [Patient's
> Name] [Anonymized]
> D 0018|0000 [UL]                                                       [Group Le
> ngth] [140]
> D 0018|0015 [CS]                                                 [Body Part Exam
> ined] [CHEST ]
> D 0018|1050 [DS]                                                 [Spatial Resolu
> tion] [0.2 ]
> D 0018|1260 [SH]                                                         [Plate
> Type] [ST]
> D 0018|1261 [LO]                                                      [Phosphor
> Type] [5 ]
> D 0018|1400 [LO]                          [Acquisition Device Processing Descrip
> tion] [[CHEST,GENERAL     ]]
> D 0018|1401 [LO]                                 [Acquisition Device Processing
> Code] [00]
> D 0018|1402 [CS]                                               [Cassette Orienta
> tion] [PORTRAIT]
> D 0018|1403 [CS]                                                      [Cassette
> Size] [35CMX35CM ]
> D 0018|5101 [CS]                                                      [View Posi
> tion] [PA]
> D 0018|6000 [DS]                                                        [Sensiti
> vity] [357 ]
> D 0020|0000 [UL]                                                       [Group Le
> ngth] [102]
> D 0020|000d [UI]                                                 [Study Instance
>   UID] [1.2.392.200036.9125.0.199302241758.16 ]
> D 0020|000e [UI]                                                [Series Instance
>   UID] [1.2.392.200036.9125.0.199302241758.16 ]
> D 0020|0013 [IS]                                                    [Instance Nu
> mber] [16]
> D 0028|0000 [UL]                                                       [Group Le
> ngth] [124]
> D 0028|0002 [US]                                                  [Samples per P
> ixel] [1]
> D 0028|0004 [CS]                                         [Photometric Interpreta
> tion] [MONOCHROME1 ]
> D 0028|0010 [US]                                                               [
> Rows] [440]
> D 0028|0011 [US]                                                            [Col
> umns] [440]
> D 0028|0034 [IS]                                                 [Pixel Aspect R
> atio] [01]
> D 0028|0100 [US]                                                     [Bits Alloc
> ated] [16]
> D 0028|0101 [US]                                                        [Bits St
> ored] [10]
> D 0028|0102 [US]                                                           [High
>   Bit] [9]
> D 0028|0103 [US]                                               [Pixel Representa
> tion] [0]
> D 0028|1050 [DS]                                                      [Window Ce
> nter] [550 ]
> D 0028|1051 [DS]                                                       [Window W
> idth] [1024]
> D 2010|0000 [UL]                                                       [Group Le
> ngth] [14]
> D 2010|0100 [CS]                                                     [Border Den
> sity] [BLACK ]
> D 7fe0|0000 [UL]                                                       [Group Le
> ngth] [387208]
> D 7fe0|0010 [OW]                                                         [Pixel
> Data] [gdcm::NotLoaded] (gdcm::Pixel Data to be loaded)
> --- Pixel information -------------------------
> Pixel Data: offset 776 x(308)   length 387200 x(5e880)
>
>
>
>
>   dataSize    387200
>   dataSizeRaw 387200
>   DIMX=440 DIMY=440 DIMZ=1 DIMT=1
>   pixelType= [16U] SamplesPerPixel= [1]  PhotometricInterpretation= [MONOCHROME1
> ]
>   NumberOfScalarComponents = 1
>   LUT = FALSE
>   TransferSyntaxName= [Uncompressed ACR-NEMA]
>   SwapCode= 1234
>   ------
>
>
>
> X spacing 1
> Y spacing 1
> Z spacing 1
> View Position (0x0018,0x5101)= [PA]
> Image Position (0x0020,0x0032|0x0030) : 0 , 0 , 0
> Image Orientation (0x0020,0x0037|0x0035) : 1 , 0 , 0 , 0 , 1 , 0
> Orientation [gdcm::Unfound]
>
> CR-MONO1-10-chest.dcm is Readable
>
> ====================================================================================
>
>
> --------------------Configuration: RUN_TESTS - Win32 Debug--------------------
> Performing Custom Build Step on D:\gdcm\RUN_TESTS_force_1.rule
> Start processing tests
> Test project D:/gdcm
>    1/ 28 Testing TestEmpty                        Passed
>    2/ 28 Testing TestUtil                         Passed
>    3/ 28 Testing TestBug                          Passed
>    4/ 28 Testing TestHash                         Passed
>    5/ 28 Testing TestCommand                      Passed
>    6/ 28 Testing TestTS                           Passed
>    7/ 28 Testing TestVR                           Passed
>    8/ 28 Testing TestDictGroupName                Passed
>    9/ 28 Testing TestDict                         Passed
>   10/ 28 Testing TestDataEntry                    Passed
>   11/ 28 Testing TestWriteSimple               ***Failed
>   12/ 28 Testing TestImageSet                  ***Failed
>   13/ 28 Testing TestDicomDirElement              Passed
>   14/ 28 Testing TestDicomString                  Passed
>   15/ 28 Testing TestEnumVR                       Passed
>   16/ 28 Testing TestFileAccessors             ***Failed
>   17/ 28 Testing TestMakeIcon                  ***Failed
>   18/ 28 Testing TestLoadAllDocumentsNoPrivNoSe   Passed
>   19/ 28 Testing TestPrintAllDocument          ***Failed
>   20/ 28 Testing TestAllReadCompareDicom       ***Failed
>   21/ 28 Testing TestReadWriteReadCompare      ***Failed
>   22/ 28 Testing TestDirList                      Passed
>   23/ 28 Testing TestDicomDir                  ***Failed
>   24/ 28 Testing TestBuildUpDicomDir           ***Failed
>   25/ 28 Testing TestMakeDicomDir              ***Failed
>   26/ 28 Testing TestSerieHelper                  Passed
>   27/ 28 Testing TestAllVM                     ***Exception: SegFault
>   28/ 28 Testing TestValidate                     Passed
> 61% tests passed, 11 tests failed out of 28
> The following tests FAILED:
>    11 - TestWriteSimple (Failed)
>    12 - TestImageSet (Failed)
>    16 - TestFileAccessors (Failed)
>    17 - TestMakeIcon (Failed)
>    19 - TestPrintAllDocument (Failed)
>    20 - TestAllReadCompareDicom (Failed)
>    21 - TestReadWriteReadCompare (Failed)
>    23 - TestDicomDir (Failed)
>    24 - TestBuildUpDicomDir (Failed)
>    25 - TestMakeDicomDir (Failed)
>    27 - TestAllVM (SEGFAULT)
> Errors while running CTest
> Error executing c:\winnt\system32\cmd.exe.
>
> RUN_TESTS - 1 error(s), 0 warning(s)
>
>


-- 
Mathieu



More information about the Dcmlib mailing list