<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>On Tue, May 10, 2016 at 7:37 AM, Flaviu2 <<a href="mailto:flaviu2@yahoo.com">flaviu2@yahoo.com</a>> wrote:<br>><br>> Very useful your comments ! I have learned something here.<br>><br>> The line<br>><br>> > table->SetRange(0, 2047)<br><br>Try something like the code below, it is simple but it often works fine.</div><div>If it doesn't work for your image, there are more sophisticated methods</div><div>that can be used, but they involve computing some statistics on the</div><div>image and using the metadata to convert pixels to Hounsfield units.</div><div><br>m_pDICOMReader->Update();<br>double range[2];<br>m_pDICOMReader->GetOutput()->GetScalarRange(range);</div><div>table->SetRange(range);</div><div><br></div><div> - David</div></div></div></div>