[Dcmlib] gdcm-JPEG-LossLess3a.dcm

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Nov 23 04:01:49 CET 2005


The length found in the DICOM tag is correct the length of the jpeg 
stream is indeed 212866 (whereas PrintFile shows conflicting information:

D 7fe0|0010 [OW] 
  [Pixel Data] (gdcm::Pixel Data to be loaded)
--- Pixel information -------------------------
Pixel Data: offset 2540 x(9ec)   length 212890 x(33f9a)

----------------- JPEG fragments --------------------------------

Total number of fragments : 1
    fragment number :0   JPEG fragment: offset : 2556   length : 212866


One way to check the end of a JPEG stream is to check the EOI (D9).

HTH
Mathieu


Warning: In /home/mathieu/Creatis/write/gdcm/src/gdcmDocument.cxx, line 
1508, function uint32_t gdcm::Document::FindDocEntryLengthOBOrOW()
Neither an Item tag nor a Sequence delimiter tag on :b00c , eb6) 
-before- position x(34982)


Warning: In /home/mathieu/Creatis/write/gdcm/src/gdcmDocument.cxx, line 
1424, function void gdcm::Document::FindDocEntryLength(gdcm::DocEntry*)
  Computing the length failed for 7fe0|0010 in 
/home/mathieu/Creatis/gdcmData/gdcm-JPEG-LossLess3a.dcm


7fe0|0010 OB
Debug: In /home/mathieu/Creatis/write/gdcm/src/gdcmDocument.cxx, line 
1219, function void gdcm::Document::ParseDES(gdcm::DocEntrySet*, long 
int, long int, bool)
Last system error was: No such file or directory
Exit from ParseDES, delim-mode 0


Debug: In /home/mathieu/Creatis/write/gdcm/src/gdcmFile.cxx, line 1786, 
function uint32_t gdcm::File::ReadTagLength(uint16_t, uint16_t)
Basic Item Length is: 0  at address: 9f0


Debug: In /home/mathieu/Creatis/write/gdcm/src/gdcmFile.cxx, line 1786, 
function uint32_t gdcm::File::ReadTagLength(uint16_t, uint16_t)
Basic Item Length is: 212866  at address: 9f8


Warning: In /home/mathieu/Creatis/write/gdcm/src/gdcmFile.cxx, line 
1747, function bool gdcm::File::ReadTag(uint16_t, uint16_t)
Wrong Item Tag found:   We should have found tag (fffe|e000)
    but instead we encountered tag (b00c|0eb6)  at address:   0x(3497e)


Warning: In /home/mathieu/Creatis/write/gdcm/src/gdcmFile.cxx, line 
1747, function bool gdcm::File::ReadTag(uint16_t, uint16_t)
Wrong Item Tag found:   We should have found tag (fffe|e0dd)
    but instead we encountered tag (b00c|0eb6)  at address:   0x(3497e)


Warning: In /home/mathieu/Creatis/write/gdcm/src/gdcmFile.cxx, line 
1696, function void gdcm::File::ComputeJPEGFragmentInfo()
No sequence delimiter item at end of JPEG item sequence



More information about the Dcmlib mailing list