<br><font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">I think there is a bug in ComputeRLEInfo.</font>
<br>
<br><font size=2 face="sans-serif"> uint32_t rleSegmentOffsetTable[15];</font>
<br><font size=2 face="sans-serif"> for( int k = 1; k <= 15; k++ )</font>
<br><font size=2 face="sans-serif"> {</font>
<br><font size=2 face="sans-serif"> rleSegmentOffsetTable[k] = ReadInt32();</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif">should be replaced by</font>
<br>
<br><font size=2 face="sans-serif"> uint32_t rleSegmentOffsetTable[15];</font>
<br><font size=2 face="sans-serif"> // for( int k = 1; k <= 15; k++ )</font>
<br><font size=2 face="sans-serif"> for( int k = 1; k <= <b>nbRleSegments</b>; k++ )</font>
<br><font size=2 face="sans-serif"> {</font>
<br><font size=2 face="sans-serif"> rleSegmentOffsetTable[k] = ReadInt32();</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"><br>
TestReadWriteReadCompare was always failing on acuson RLE encoded images.</font>
<br>
<br><font size=2 face="sans-serif">Now this test only fails with pixel deiffer (as expanded in memory) with:</font>
<br><font size=2 face="sans-serif"> gdcm-jpeg-losslessthoravision.dcm</font>
<br><font size=2 face="sans-serif"> kodak-12-mono1-odd_terminated_sequence.dcm</font>
<br><font size=2 face="sans-serif">and some warnings are displayed with </font>
<br><font size=2 face="sans-serif"> PHILIPS_Integris_H-8-MONO2-Multiframe.dcm</font>
<br><font size=2 face="sans-serif">as</font>
<br><font size=2 face="sans-serif"> Testing: ../gdcmData/PHILIPS_Integris_H-8-MONO2-Multiframe.dcm</font>
<br><font size=2 face="sans-serif"> step 1 ...Corrupt JPEG data: premature end of data segment</font>
<br><font size=2 face="sans-serif">Corrupt JPEG data: premature end of data segment</font>
<br><font size=2 face="sans-serif">Corrupt JPEG data: 1 extraneous bytes before marker 0xd9</font>
<br><font size=2 face="sans-serif">Corrupt JPEG data: premature end of data segment</font>
<br><font size=2 face="sans-serif">Corrupt JPEG data: 2 extraneous bytes before marker 0xd9</font>
<br><font size=2 face="sans-serif">2...3...4...OK.</font>
<br>
<br><font size=2 face="sans-serif">JM</font>
<br>
<br>