简体   繁体   English

使用Oak Oak DICOM渲染DICOM图像

[英]Rendering DICOM image using Fellow Oak DICOM

I need to extract a DICOM image from a file and convert it to a standard bitmap. 我需要从文件中提取DICOM图像,并将其转换为标准位图。 This is the code I have, using fo-dicom: 这是我使用fo-dicom编写的代码:

    Bitmap bmp;
    try
    {
        var image = new DicomImage(Context.Server.MapPath("~/IM-0001-0000.dcm"));
        bmp = new Bitmap(image.RenderImage());
    }
    catch (Exception exception)
    {
        //for breakpoint purposes
        throw;
    }

However, it fails with the following message: 但是,它失败并显示以下消息:

No codec registered for tranfer syntax: JPEG 2000 Image Compression

I'm not an expert on medical imaging, and Google doesn't turn up anything useful. 我不是医学影像专家,Google并没有提供任何有用的信息。 I installed fo-dicom via NuGet, so I suppose all required references are already in the project. 我通过NuGet安装了fo-dicom,所以我想所有必需的引用都已在项目中。 What am I missing? 我想念什么?

I had the same problem and solved it by changing the target platform from 64 bit to 32 bit. 我遇到了同样的问题,并通过将目标平台从64位更改为32位来解决了该问题。 this is how you can do it on visual studio 2013, but must be pretty much the same in other versions project tab-->properties-->build tab-->platform target 这是您在Visual Studio 2013上可以执行的操作,但是在其他版本中必须几乎相同。项目选项卡->属性->生成选项卡->平台目标

我使用的是fo-dicom 2.0.2,存在相同的问题,可以通过在与.exe相同的目录中处理Dicom.Native.dll并安装Visual Studio 2013的Visual C ++可再发行组件包https://www.microsoft.com/en来解决-us / download / details.aspx?id = 40784

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM