简体   繁体   English

使用Fo-Dicom渲染JPEG 2000图像压缩Dicom

[英]Render JPEG 2000 Image Compression Dicom with Fo-Dicom

I'm try to create a simple WinForms viewer to show DICOM files generated in a NOVARAD pacs system. 我试图创建一个简单的WinForms查看器,以显示在NOVARAD pacs系统中生成的DICOM文件。 I'm using the following code from their GitHub page : 我正在从他们的GitHub页面使用以下代码:

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: 'Decoding dataset with transfer syntax: JPEG 2000 Image Compression (Lossless Only) is not supported.' 'Dicom.Imaging.Codec.DicomCodecException:'不支持使用传输语法解码数据集:JPEG 2000图像压缩(仅无损)。

I'm assuming I need to decompress from the JPEG 2000. Can this not be done with fi-dicom ? 我假设我需要从JPEG 2000解压缩。使用fi-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. 我尝试使用GDCM库,但找不到C#包装程序,并注意到一些评论说他们将其合并到fo-dicom中。

Any suggestions ? 有什么建议么 ?

Thanks 谢谢

In .NET Framework applications, the build architecture needs to be set to x86 or x64. 在.NET Framework应用程序中,需要将构建体系结构设置为x86或x64。 Codec access on Any CPU architecture will not work, since there are no native codec libraries available for that architecture. 由于没有适用于该架构的本机编解码器库,因此无法在任何CPU架构上进行编解码器访问。 For more information, see the fo-dicom wiki . 有关更多信息,请参见fo-dicom Wiki

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

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