0

我已经使用 Imebra 库将 Dicom 图像转换为 JPEG 文件。我想在屏幕上显示的 JPEG 上应用交互式窗口。

任何帮助将不胜感激。

目前我通过迭代每个JPEG像素在像素上使用以下逻辑,但它没有正确地将窗口应用于JPEG文件

[渲染脚本代码]

displayMin = (windowLevel- windowWidth/2);
displayMax = (windowLevel+ windowWidth/2);

/* Channel */

if(current.r < displayMin)
{
  current.r = 0;
}
else if(current.r > displayMax)
{
   current.r = 1;
} 
4

1 回答 1

0

Imebra now supplies the pre-compiled library for Android, which applies the Windowing in real time when you use the DicomView class (an Android View that displays the Dicom Image).

There is no need to convert to jpeg: Follow the example in the documentation and then modify the windowing value in the voilut object.

于 2013-11-13T08:05:07.617 回答