简体   繁体   English

在DICOM中处理无损jpeg图像

[英]Handling a lossless jpeg Image in DICOM

I have a DICOM Image which has the image stored as the following JPEG Lossless, Nonhierarchical, First- Order Prediction (Processes 14 [Selection Value 1]): Default Transfer Syntax for Lossless JPEG Image Compression 我有一个DICOM图像,该图像的图像存储为以下JPEG无损,无层次,一阶预测(进程14 [选择值1]):无损JPEG图像压缩的默认传输语法

I can open the original DICOM file in Irfanview, and that works fine, but when I take the Bit stream from the DICOM file and save it as a file, and try to open it in Irfanview, I get an error "Unsupported JPEG process/compression: SOF type 0xc3" 我可以在Irfanview中打开原始DICOM文件,但效果很好,但是当我从DICOM文件中获取位流并将其保存为文件,并尝试在Irfanview中打开它时,出现错误“不支持的JPEG进程/压缩:SOF类型0xc3“

I've checked that the byte stream matches that of the DICOM file, and checked that it starts with, FF D8 FF E0 00 10 4A 46 49 46 which seems to be a standard JPEG header. 我检查了字节流是否与DICOM文件匹配,并检查了它是否以FF D8 FF E0 00 10 4A 46 49 46开头,这似乎是一个标准的JPEG标头。

There are 4 bytes at the end of the DICOM file beyond what is specified by the length of the tag, are these some sort of DICOM footer? DICOM文件末尾有4个字节,超出了标签长度所指定的范围,这些DICOM页脚是否存在?

Any ideas what it would take to get this to open? 有什么想法可以打开它吗? I've included the JPEG_LS plugin in Irfanview. 我在Irfanview中包含了JPEG_LS插件。 This is a continuation of Length of PixelStream in EvilDicom library 这是EvilDicom库中PixelStreamLength的延续

That data is not JPEG-LS, it is JPEG Lossless (1.2.840.10008.1.2.4.70), a completely unrelated compression format. 该数据不是JPEG-LS,而是JPEG无损(1.2.840.10008.1.2.4.70),这是一种完全不相关的压缩格式。 Very few image readers support that type of JPEG data. 很少有图像读取器支持该类型的JPEG数据。 I've only known it to be used in the context of DICOM. 我只知道它可用于DICOM。

I believe also that it may not necessarily be one contiguous block of JPEG data, but rather be broken into segments (encapsulated DICOM) with DICOM tag wrappers. 我还相信,它不一定是一个连续的JPEG数据块,而是用DICOM标签包装器分成多个段(封装的DICOM)。

Perhaps Irfanview knows how to read it when in the context of a DICOM, but fails to read it as normal JPEG data, since it is such a rare JPEG format. 也许Irfanview知道如何在DICOM上下文中读取它,但是由于它是一种罕见的JPEG格式,因此无法将其作为常规JPEG数据读取。 Or perhaps the data stream is not contiguous JPEG data, but contains DICOM elements as well. 也许数据流不是连续的JPEG数据,但也包含DICOM元素。

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

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