title: Reading DICOM 1.2.840.10008.1.2.4.70
body: <p>I have a problem when reading DICOM file. This is the format 1.2.840.10008.1.2.4.70(Process 14 with a first-order prediction (Selection Value 1). I write my own software.</p>
  
  <p>Here is result of my work.</p>
  
  <p><img src="https://i.stack.imgur.com/WNjYf.png" alt="CLICK"></p>
  
  <p>I also give you a <a href="https://docs.google.com/open?id=0Bw5-VXnqutXBam93ZDFyUG15Z2s" rel="nofollow noreferrer">.dcm file</a>.</p>
  
  <p>What can be wrong with it? Only RadiAnt Dicom Viewer open it corectly ( i didn't find any working software with source code ).
  Have someone any tutorial about it? Any working code? </p>
  
  <p>I'll be very grateful!
  Thanks for help.</p>
  
  <hr>
  
  <p>I show you how I it do:</p>
  
  <pre><code>//I have:
  numCOL= imageWidth;
  numROW= imageHeight;
  
  dwCurrentBufferLength;//-&gt; where I in file
  
  //and other stuff...
  
  //First i decode first row:
  //[0][0]
  
  DecodeFirstRow(curRowBuf,dwCurrentBufferLength);
  
  //I calculate difrences
  HuffDecode ( table , &amp;val, dwCurrentBufferLength);
  
  //and extend
  HuffExtend(extend, val);
  
  curRowBuf[0][curComp]=extend+(1&lt;&lt;(Pr-Pt-1));
  
  //[1-n][0]
  //... huff stuff
  curRowBuf[col][curComp]=extend+curRowBuf[col-1][curComp];
  
  //Then i put row to the vector:
  for (col = 0; col &lt; numCol; col++) 
  {       
  v=RowBuf[col][0]&lt;&lt;point_transform_parameter;                    
  m_vOutputBuf.push_back(v);
  }   
  
  //Rest of columns
  //[0][m]
  curRowBuf[0][curComp]=extend+prevRowBuf[0][curComp];    
  
  
  predictor = left =curRowBuf[leftcol][curComp];
  //[1-n][m]
  curRowBuf[col][curComp]=extend+predictor;
  //and also put it to vector ^^
  </code></pre>
  
  <p>Where i must sub this 1000??</p>