[vtkusers] why the DICOM image is completely white when I use lung color level and window?
Liu_tj
tjlp at netease.com
Tue Sep 5 21:14:23 EDT 2017
Hi,David,
Thanks. That works.
Liu Peng
在2017-09-05,"David Gobbi" <david.gobbi at gmail.com> 写道: -----原始邮件-----
发件人:"David Gobbi" <david.gobbi at gmail.com>
发送时间:2017年09月5日 星期二
收件人:"Liu_tj" <tjlp at netease.com>
抄送:"vtkusers" <vtkusers at vtk.org>
主题:Re: Re: [vtkusers] why the DICOM image is completely white when I use lung color level and window?
Hi Liu Peng,
It would be something like this:
ColorWindow = 1200/RescaleSlope
ColorLevel = (-600 - RescaleIntercept)/RescaleSlope
- David
On Mon, Sep 4, 2017 at 10:11 PM, Liu_tj <tjlp at netease.com> wrote:
Hi, David,
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->SetColorLevel() and SetColorWindow() function, right?
Thanks
Liu Peng
在2017-09-05,"David Gobbi" <david.gobbi at gmail.com> 写道: -----原始邮件-----
发件人:"David Gobbi" <david.gobbi at gmail.com>
发送时间:2017年09月5日 星期二
收件人:"Liu_tj" <tjlp at netease.com>
抄送:"vtkusers" <vtkusers at vtk.org>
主题:Re: [vtkusers] why the DICOM image is completely white when I use lung color level and window?
Hi Liu Peng,
Use the reader's GetRescaleSlope() and GetRescaleIntercept(). See http://dgobbi.github.io/vtk-dicom/doc/api/image_display.html and scroll down to the "Grayscale image display" section.
For a run-down on some of the complications of Window/Level in DICOM, see the following:
http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.11.html
http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.11.2.html
- David
On Mon, Sep 4, 2017 at 8:18 AM, Liu_tj <tjlp at netease.com> wrote:
Hi,
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.
If I use other DICOM browser tool, with the same level and window, the DICOM is displayed correclty.
What's wrong with the level and window setting to vtkImageViewer2?
Thanks
Liu Peng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170906/ab170700/attachment.html>
More information about the vtkusers
mailing list