将16位灰度DICOM图像转换为8位:正确的过程 [英] convert 16 bit grayscale DICOM image to 8 bit: the correct procedure

查看:2111
本文介绍了将16位灰度DICOM图像转换为8位:正确的过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试为DICOM图像创建图像查看器。我的程序几乎可以正确读取所有8位颜色和灰度图像。但是当我尝试使用图像的前8位打开16位图像时,某些部分缺失(使用16位的像素将显示为暗而不是whilte)。我真的不知道如何使用窗口中心,窗口宽度,rescale slop和拦截。请帮助我给出将16位图像转换为8位图像的确切步骤。此外,我不需要查看使用任何压缩技术来存储像素的文件。在此先感谢。

I have been trying to create an image viewer for DICOM image. My program reads all the 8 bit colour and grayscale image almost correctly. But when I try to open a 16 bit image using the first 8 bits of the image, some parts are missing (pixels which uses 16 bit will be shown as dark instead of whilte). I don't really know how to use the window centre, window width, rescale slop and intercept. Please help me by giving the exact steps to convert 16 bit image to 8 bit image. Also I don't need to view the files which uses any compression technique to store the pixels. Thanks in advance.

推荐答案

关于重新缩放斜率/截距:这是一个线性方程式,因此每个像素值都是通过

About Rescale Slope/Intercept: It is a linear equation, so each pixel value is calculated by

<output pixel value> = <value from pixeldata attribute> * RescaleSlope + RescaleIntercept

这是窗口方程的输入。确切的窗口方程是这里

This is the input to the windowing equation. The exact windowing equation is here.

关于倒像素:属性(0028,0103)可能设置为MONOCHROME1,这意味着:min = white,max = black(或black bones约定,即图像包含引起的衰减通过管和探测器之间的组织)。这称为极性变换,发生在像素值转换管道的末尾。

About the inverted pixels: The attribute (0028,0103) is probably set to MONOCHROME1 which means: min=white, max=black (or "black bones" convention, i.e. the image contains the attenuation caused by the tissue between tube and detector). This is called the Polarity transformation and happens at the end of the pixel value transformation pipeline.

所以你的步骤是:


  • 应用rescale slope / intercept

  • apply rescale slope / intercept

应用窗口

这篇关于将16位灰度DICOM图像转换为8位:正确的过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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