简体   繁体   English

如何读取MultiFrame DICOM图像

[英]the How to Read MultiFrame DICOM Image

I am able to read the first frame but how will I read the other frames? 我能够读取第一帧,但是我将如何读取其他帧? There are 60 frames in a file. 一个文件中有60帧。

For uncompressed images, the frames are stored in one continuous blob. 对于未压缩的图像,帧存储在一个连续的Blob中。 For compressed images, the first data item (FFFE,E000) has a list of 4-byte offsets to the start of each frame. 对于压缩图像,第一个数据项(FFFE,E000)具有到每个帧开始的4字节偏移量列表。

For example, a 200x200x16-bit uncompressed frame takes 80000 bytes. 例如,一个200x200x16位的未压缩帧占用80000个字节。 If your file has 50 frames, it will have 80K x 50 = 4MB of image data. 如果您的文件有50帧,它将具有80K x 50 = 4MB的图像数据。 The frames are stacked together in order so frame N will be at offset N x 80K bytes. 帧按顺序堆叠在一起,因此帧N将偏移N x 80K字节。

For compressed frames the start of the data item contains a list of 4 byte integers with absolute offsets into the file for each frame. 对于压缩帧,数据项的开头包含一个4字节整数列表,每个帧的文件中都有绝对偏移量。 Each frame's compressed data length is gotten from the data item pointed to by the list. 每帧的压缩数据长度是从列表指向的数据项中获得的。

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

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