<div dir="ltr">Ok,<div><br></div><div>I don't know why (if somebody can explain...), changing pixel type from unsigned short to float makes a difference:</div><div><br></div><div><a href="http://s24.postimg.org/srf8937np/firstcompare_after_float.png">http://s24.postimg.org/srf8937np/firstcompare_after_float.png</a></div><div><br></div><div>Not enough, but I have two user controls to change window/level, and incrementing window value and decrementing level value I get the same image that Philips Viewer shows (about 350 window and 30 level):</div><div><br></div><div><a href="http://s4.postimg.org/qz2o7zf65/after_windowlevel.png">http://s4.postimg.org/qz2o7zf65/after_windowlevel.png</a><br></div><div><br></div><div>PD: I found out in the Philips viewer some window/level presets... and the one it's using has window: 360 and level: 60 (you can choose another presets)</div><div>I was opening another files, and there's always those presets. </div><div><br></div><div>Does that mean that is correct that I always set those presets when loading my files?</div><div><br></div><div>That doesn't resolve why I can't load color on my images :(</div><div>But the color Dicom file I'm trying... Philips can't even load it, it says it has invalid data. I can view it at least. </div><div><br></div><div>But if I set it to 360 and 60 I see it too bright so... I return to my question: how to know what preset is fine for each file?</div><div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-14 0:01 GMT+02:00 Marcos <span dir="ltr"><<a href="mailto:fotosentido@gmail.com" target="_blank">fotosentido@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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>
</blockquote></div><br></div>