使用Fo-Dicom渲染JPEG 2000图像压缩Dicom [英] Render JPEG 2000 Image Compression Dicom with Fo-Dicom

查看:911
本文介绍了使用Fo-Dicom渲染JPEG 2000图像压缩Dicom的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建一个简单的WinForms查看器,以显示在NOVARAD pacs系统中生成的DICOM文件.我正在从他们的 GitHub页面中使用以下代码:

I'm try to create a simple WinForms viewer to show DICOM files generated in a NOVARAD pacs system. I'm using the following code from their GitHub page:

var image = new DicomImage(@"C:\myDicom.dcm");                        
image.RenderImage().AsClonedBitmap().Save(@"test.jpg");
Process.Start("test.jpg");

运行代码时,出现以下错误:

When I run the code I get the following error:

Dicom.Imaging.Codec.DicomCodecException:'解码数据集 传输语法:JPEG 2000图像压缩(仅无损)不是 支持."

Dicom.Imaging.Codec.DicomCodecException: 'Decoding dataset with transfer syntax: JPEG 2000 Image Compression (Lossless Only) is not supported.'

我假设我需要从JPEG 2000解压缩.使用fi-dicom不能做到这一点吗?

I'm assuming I need to decompress from the JPEG 2000. Can this not be done with fi-dicom ?

我试图使用GDCM库,但找不到C#包装程序,并注意到一些评论说他们将其装入fo-dicom.

I was trying to play around with GDCM library but I couldn't find the C# wrapper, and noticed several comments saying they rolled it into fo-dicom.

有什么建议吗?

谢谢

推荐答案

在.NET Framework应用程序中,构建体系结构需要设置为x86或x64.在任何CPU 架构上的编解码器访问将无法正常进行,因为没有适用于该架构的本机编解码器库.有关更多信息,请参见 fo-dicom 维基.

In .NET Framework applications, the build architecture needs to be set to x86 or x64. Codec access on Any CPU architecture will not work, since there are no native codec libraries available for that architecture. For more information, see the fo-dicom wiki.

这篇关于使用Fo-Dicom渲染JPEG 2000图像压缩Dicom的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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