From 5520edc6b36e659287bf5f7eac8a9531377aadcc Mon Sep 17 00:00:00 2001 From: frog Date: Tue, 6 Jul 2004 09:49:52 +0000 Subject: [PATCH] - oldACR00001.ima renamed to SIEMENS_GBS_III-16-ACR_NEMA_1.acr (directly on server so no cvs message present) - added this Changelog - added reference file for both comments and test suite. --- Changelog | 5 ++++ TestAllEntryVerifyReference.txt | 46 +++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 Changelog create mode 100644 TestAllEntryVerifyReference.txt diff --git a/Changelog b/Changelog new file mode 100644 index 0000000..f2fa2fd --- /dev/null +++ b/Changelog @@ -0,0 +1,5 @@ +2004-07-06 Eric Boix + - oldACR00001.ima renamed to SIEMENS_GBS_III-16-ACR_NEMA_1.acr + (directly on server so no cvs message present) + - added this Changelog + - added reference file for both comments and test suite. diff --git a/TestAllEntryVerifyReference.txt b/TestAllEntryVerifyReference.txt new file mode 100644 index 0000000..67582b9 --- /dev/null +++ b/TestAllEntryVerifyReference.txt @@ -0,0 +1,46 @@ +[ CR-MONO1-10-chest.dcm + #"Transfer Syntax UID" is absent. + 0008|0060 "CR" # Modality + 0008|0070 "FUJI PHOTO FILM CO. LTD." # Manufacturer + 0008|1090 "9000" # Manufacturer's Model Name + 0028|0010 "440" # Rows + 0028|0011 "440" # Columns + 0028|0100 "16" # Bits Allocated + 0028|0101 "10" # Bits Stored + 0028|0102 "9" # High Bit + 0028|0103 "0" # Pixel Representation + 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:776 Length:387200 x(5e880)" +] + +[ SIEMENS_GBS_III-16-ACR_NEMA_1.acr + # - Particularities: + # * old (circa 1991) ACR NEMA version 1.0 format. + # * Pixel Representation (0028|0103) is absent + # * apparently broken pixel data (see below) + # + # - This image pixel data looks corrupted, in the sense that the + # following sizes do NOT match (as expected): + # * it's pixel data is 132096 bytes long + # * it has a size of 256x256 with 16 bytes per pixel, i.e. a size + # of 256*256*2 = 131072 bytes. + # - Because of this missmatch, TestReadWriteReadCompare segfaults + # on this image. + # In details, when segfault occurs we have the following call stack: + # gdcmFile::GetImageData() + # PixelData = new uint8_t[ImageDataSize]; + # \--->::GetImageDataIntoVector(destination, ImageDataSize) + # \---> ::ReadPixelData(destination) + # \---> fread(destination, Header->GetPixelAreaLength(), 1, fp); + # which causes the segfault because : + # - destination is ImageDataSize i.e. 131072 bytes long + # - Header->GetPixelAreaLength() = 132096 bytes long + 0028|0010 "256" # Rows + 0028|0011 "256" # Columns + 0008|0060 "MR" # Modality + 0028|0100 "16" # Bits Allocated + 0028|0101 "12" # Bits Stored + 0028|0102 "11" # High Bit + 0008|0070 "SIEMENS " # Manufacturer + 0008|1090 "GBS III " # Manufacturer's Model Name + 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:8192 Length:132096 x(20400)" +] -- 2.45.1