Hi,David,<br><br>Thanks. That works.<br><br>Liu Peng<br><div><br><br></div>
<span>
</span>
<br> 在2017-09-05,"David Gobbi" <david.gobbi@gmail.com> 写道:
<blockquote id="isReplyContent" style="padding-left:1ex; margin: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
-----原始邮件-----<br>
<b>发件人:</b>"David Gobbi" <david.gobbi@gmail.com> <br>
<b>发送时间:</b>2017年09月5日 星期二<br>
<b>收件人:</b>"Liu_tj" <tjlp@netease.com><br>
<b>抄送:</b>"vtkusers" <vtkusers@vtk.org><br>
<b>主题:</b>Re: Re: [vtkusers] why the DICOM image is completely white when I use lung color level and window?<br>
<br><div dir="ltr">Hi Liu Peng,<div><br></div><div>It would be something like this:</div><div><br></div><div>ColorWindow = 1200/RescaleSlope</div><div>ColorLevel = (-600 - RescaleIntercept)/RescaleSlope</div><div><br></div><div> - David<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 4, 2017 at 10:11 PM, Liu_tj <span dir="ltr"><<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi, David,<br><br>So I need to convert the window and level value, 1200 and -600, by this mapping "ModalityValue = RescaleSlope * StoredValue + RescaleIntercept" before I call the vtkImageViewer2-><wbr>SetColorLevel() and SetColorWindow() function, right?<br><br>Thanks<br>Liu Peng<br><br><br></wbr></div>
<span>
</span>
<br> 在2017-09-05,"David Gobbi" <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>> 写道:
<blockquote id="m_8932700995806653998isReplyContent" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
-----原始邮件-----<br>
<b>发件人:</b>"David Gobbi" <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>> <br>
<b>发送时间:</b>2017年09月5日 星期二<br>
<b>收件人:</b>"Liu_tj" <<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>><br>
<b>抄送:</b>"vtkusers" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
<b>主题:</b>Re: [vtkusers] why the DICOM image is completely white when I use lung color level and window?<div><div class="h5"><br>
<br><div dir="ltr">Hi Liu Peng,<div><br></div><div>Use the reader's GetRescaleSlope() and GetRescaleIntercept(). See <a href="http://dgobbi.github.io/vtk-dicom/doc/api/image_display.html" target="_blank">http://dgobbi.github.io/vtk-<wbr>dicom/doc/api/image_display.<wbr>html</wbr></wbr></a> and scroll down to the "Grayscale image display" section.</div><div><br></div><div>For a run-down on some of the complications of Window/Level in DICOM, see the following:</div><div><a href="http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.11.html" target="_blank">http://dicom.nema.org/medical/<wbr>dicom/current/output/chtml/<wbr>part03/sect_C.11.html</wbr></wbr></a><br></div><div><a href="http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.11.2.html" target="_blank">http://dicom.nema.org/medical/<wbr>dicom/current/output/chtml/<wbr>part03/sect_C.11.2.html</wbr></wbr></a></div><div><br></div><div> - David<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 4, 2017 at 8:18 AM, Liu_tj <span dir="ltr"><<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi,</div><div><br></div><div>I use vtkImageViewer2 to display DICOM series. If I set the lung color level and window, which is -600 and 1200, to the vtkImageViewer2, the image is completely white.</div><div><br></div><div>If I use other DICOM browser tool, with the same level and window, the DICOM is displayed correclty.<br></div><div><br></div><div>What's wrong with the level and window setting to vtkImageViewer2?</div><div><br></div><div>Thanks</div><div><br></div><div>Liu Peng</div></blockquote></div></div></div></div></div></div></blockquote></blockquote></div></div></div></div>
</blockquote><br><br><span title="neteasefooter"><p> </p></span>