正确显示DICOM图像ITK-VTK(图像太暗) [英] Correct display of DICOM images ITK-VTK (images too dark)

查看:4619
本文介绍了正确显示DICOM图像ITK-VTK(图像太暗)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用itk :: ImageSeriesReader和itk :: ImageSeriesReader和itk :: GDCMImageIO读取dicom图像使用itk :: FlipImageFilter(以获得正确的图像方向)翻转图像,并使用itk :: ImageToVTKImageFilter将itkImageData转换为vtkImageData 。我在VTV使用vtkResliceImageViewer在QVTKWidget2可视化图像。
I set:

I read dicom images with ITK using itk::ImageSeriesReader and itk::GDCMImageIO after reading i flip the images with itk::FlipImageFilter (to get right orientation of the images) and convert the itkImageData to vtkImageData using itk::ImageToVTKImageFilter. I visualization images with VTK using vtkResliceImageViewer in QVTKWidget2. I set:

 (vtkResliceImageViewer)m_imageViewer[i]->SetColorWindow(windowWidthTAGvalue[0028|1051]);
 (vtkResliceImageViewer)m_imageViewer[i]->SetColorLevel(windowCenterTAGvalue[0028|1050]);

并且我设置以下blac& white LookUpTable:

and i set following blac&white LookUpTable:

   vtkLookupTable* lutbw = vtkLookupTable::New();
    lutbw->SetTableRange(0,1000);
    lutbw->SetSaturationRange(0,0);
    lutbw->SetHueRange(0,0);
    lutbw->SetValueRange(0,1);
    lutbw->Build();

显示在我的软件中的图像与显示在其他软件中的相同图像相比更暗,不会获得与其他DICOM查看器相同的效果

And images shown into my software compared with the same images shown into other software are much darker, i can not get the same effect as other DICOM viewers

我的软件图像是正确的其他软件图像也留下了,当我使用一些其他LookUpTable在这个例子流我不能得到相同效果(第2行图片)我的右侧图片比其他图片更暗。

My software images are right other software image is left also when i use some other LookUpTable in this example Flow i can not get the same effect (2nd row images) my image on right is much darker then other.

我错过了为什么我的图片变暗了我能做什么?

What i am missing why my images are darker what can i do? i was research a lot into dicom and ikt/vtk can not find good solution any help is appreciate.

推荐答案

我提取的图像是一个非常好的解决方案,我从dicom和ikt / vtk找不到很好的解决方案。来自您的DICOM文件(brain_009.dcm)的数据,并查看图像数据的直方图。看来,存储在图像中的最小值为0,最大值为960,无论解释数据是有符号还是无符号。此外,窗口宽度(0028:1051)具有无效值0,您不能将其用于显示图像。

因此,默认显示可将窗口宽度设置为960,窗口中心设置为一半的窗口宽度加上最小值。

I extracted the image data from one of your DICOM file (brain_009.dcm) and looked at the histogram of the image data. It looks like, the minimum value stored in the image is 0 and maximum value is 960 regardless of interpreting the data is signed or unsigned. Also, the Window Width (0028:1051) has an invalid value of "0" and you cannot use that for displaying the image.
So your default display could set the Window Width to 960 and Window Center to half the window width plus the minimum value.

这篇关于正确显示DICOM图像ITK-VTK(图像太暗)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆