<div dir="ltr">Hi,<div>I'm using ITK to read dicom files, and connecting them to VTK.</div><div><br></div><div>I'm using the examples of gdcmdata (<a href="http://sourceforge.net/projects/gdcm/files/gdcmData/">http://sourceforge.net/projects/gdcm/files/gdcmData/</a>)</div><div><br></div><div>But still... I'm beginning to surrender, because I can't get right the first image (3E768EB7.dcm).<br></div><div><br></div><div>I'm posting my problem in VTK because I saved my image from ITK (changing personal metadata) and opened with the Philips DICOM Viewer, and I see it right too. So it has to be my VTK setup.</div><div><br></div><div>The thing is I don't apply any filter in VTK. I was applying one on ITK (RescaleIntensityFilter, setting minimum 0 and maximum output 255.) but without effect.</div><div><br></div><div><br></div><div>Philips DICOM Viewer, here the image:</div><div><br></div><div><a href="http://s8.postimg.org/d6oey6esl/correctimage.png">http://s8.postimg.org/d6oey6esl/correctimage.png</a><br></div><div><br></div><div>In my application, using unsigned short from ITK:</div><div><br></div><div><a href="http://s22.postimg.org/5hjhjwlsh/unsignedshort.png">http://s22.postimg.org/5hjhjwlsh/unsignedshort.png</a><br></div><div><br></div><div>In my application, using unsigned int from ITK:</div><div><br></div><div><a href="http://s13.postimg.org/xaoknjjzr/unsignedchar.png">http://s13.postimg.org/xaoknjjzr/unsignedchar.png</a><br></div><div><br></div><div>I tried this in VTK:</div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">double*</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">range</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">imageViewer->GetInput()->GetScalarRange();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">imageViewer->SetColorWindow(range[1]</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">-</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">range[0]);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">imageViewer->SetColorLevel(0.5</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">(range[1]</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">+</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">range[0]));</span></pre></div><div><div><br></div><div>But nothing. I just don't know what to do.</div><div>Also I can't see color images.</div><div>I'd aprecciate any kind of guidance.</div></div></div>