如何将DICOM图像的宽度和水平转换为JPEG亮度和对比度? [英] How to translate DICOM image width and level to JPEG brightness and contrast?

查看:179
本文介绍了如何将DICOM图像的宽度和水平转换为JPEG亮度和对比度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果将DICOM图像转换为JPEG,将原始DICOM的图像宽度= 500,窗口级别= 2000转换/计算为JPEG的亮度和对比度的方法是什么?

If we convert a DICOM image to JPEG, what is the way to translate / calculate Image width = 500, Window Level = 2000 of the original DICOM to JPEG's brightness and contrast?

推荐答案

您的问题没有直接答案,因为DICOM和JPEG具有定义亮度/对比度的不同方法。 JPEG存储真彩色值(RGB),而DICOM则具有原始像素值,大多数情况下未着色。 DICOM查看器通过读取窗口水平和宽度并将其转换为颜色来呈现它。

There's no direct answer to your question, since DICOM and JPEG have different ways to define brightness/contrast. JPEG stores true color values (RGB), while DICOM have raw pixel values, uncolored most of the time. A DICOM viewer renders it by reading the Window Level and Width and convert this to color.

也就是说,您可以说希望JPEG的像素颜色为如果它是由查看者渲染的。在您的情况下,小于1500的像素将呈现为黑色,大于2500的像素将呈现为白色。

That is, you can say that you want your JPEG to have its pixel colors as if it was rendered by a viewer. In your case pixels smaller than 1500 will be rendered as black, and those greater than 2500 as white.

这篇关于如何将DICOM图像的宽度和水平转换为JPEG亮度和对比度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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