如何在Android中使用Dicom图像执行图像处理?

我正在使用imebra库显示dicom图像,并将dicom图像转换为位图 显示。因此,当我对图像执行操作时,可能会导致内存问题。 Android中是否还有其他方法可用于“窗口调整”。

potatoIII 回答:如何在Android中使用Dicom图像执行图像处理?

使用Imebra4的sample application仅显示DICOM文件。

为了实现窗口的中心/宽度,必须在渲染图像之前将VOILUT变换附加到变换链:

来自项目代码:

// Use a DrawBitmap to build a stream of bytes that can be handled by the
// Android Bitmap class.
TransformsChain chain = new TransformsChain();

//******************************
// INSERT THE VOI LUT HERE:
VOILUT voiLut = new VOILUT();
voiLut.setCenterWidth(center,width);
chain.addTransform(voiLut);
//******************************

DrawBitmap drawBitmap = new DrawBitmap(chain);
ReadMemory memory = drawBitmap.getBitmap(dicomImage,drawBitmapType_t.drawBitmapRGBA,4);

Imebra v5(刚刚发布)略有不同:Imebra 5的示例应用程序将在几天内发布。

免责声明:我是Imebra的作者

本文链接:https://www.f2er.com/3168123.html

大家都在问