使用 DICOM 压缩
Flux 如何与 DICOM 压缩配合使用?我是否使用任何压缩算法,例如 Deflate?然后当我想加载图像时,我解压缩吗?所以如果我压缩一个 Dicom 文件。如果我尝试在另一个程序中打开它,它不会被加载?
How is the flux working with DICOM compression? Do I use any compression algorithm as Deflate for example? And then when I want to load the Image, I uncompress? So If I compress a Dicom file. If I try to open it in another program, it won't be loaded?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
每个 Dicom 文件都由一系列标签组成。
一些标签存储研究数据,其他标签存储患者数据,一些标签存储图像数据和属性等。
标签按组进行组织,因此每条信息都由组 ID 和标签 ID 来标识。
组在文件内排序,标签在组内排序。
文件中的第一组(通常具有 ID 2)包含指定传输语法的标签:传输语法是一个数字序列,指定以下组的格式以及用于图像的压缩格式。第 2 组始终以未压缩的方式存储,并使用显式 VR 小端传输语法。
大多数压缩格式仅适用于图像数据:只有 deflate 压缩适用于所有组和标签
当 dicom 阅读器想要读取文件时,只需解析第一个标签即可了解该文件的传输语法以下用于图像或文件的标签和压缩方案。
Each Dicom file is composed by a series of tags.
Some tags store the study data, other tags store the patient data, some tags store the image data and properties and so on.
The tags are organized in groups, so each piece of information is identified by a group ID and by a tag ID.
The groups are ordered within the file, and the tags are ordered within the groups.
The first group in the file (usually with ID 2) contains the tag that specifies the transfer syntax: the transfer syntax is a sequence of number that specify the format of the following groups and the compression format used for the images. The group 2 is always stored uncompressed and with the explicit VR little endian transfer syntax.
Most of the compression formats are applied only to the images data: only the deflate compression is applied to all the groups and tags
When a dicom reader wants to read a file, it just need to parse the first tags to understand the transfer syntax of the following tags and compression scheme used for the images or file.
DICOM 有不同的压缩算法:deflate、jpeg 或 jpg2000 或其他。
您的库可能会在输出上提供适当的选项来相应地设置压缩,因此请深入阅读文档或示例。当您在其他软件中加载它时,压缩将被识别并正确加载文件。
There are different compression algorithms for DICOM: deflate, jpeg or jpg2000, or others.
Your library is likely to provide proper option on output to set the compression accordingly, so dig in the docs or example. When you load it in another software, compression will be recognized and file properly loaded.