简体   繁体   English

DICOM-具有定义长度的SequenceDelimitationItem

[英]DICOM - SequenceDelimitationItem with defined length

Is it ok to use SequenceDelimitationItem along with Defined Length in DICOM? 可以在DICOM中将SequenceDelimitationItem和Defined Length一起使用吗?

Is it one way: if Undefined length then SequenceDelimitationItem must be present? 是一种方法:如果未定义长度,那么必须存在SequenceDelimitationItem?

Or is it two ways: if and only if IDI present if and only if Undefined Length is set? 还是两种方式:如果且仅当IDI存在且仅当设置了Undefined Length时才存在?

I think the first way of looking at this simplifies reading algorithms a bit. 我认为看待这种情况的第一种方式可以稍微简化阅读算法。 Plus the unknown sequences lengths could be calculated once and saved without having to parse whole unknown substructure? 再加上未知序列的长度只需计算一次即可保存,而不必解析整个未知子结构?

DICOM standard allows mixing of explicit length and undefined length elements in a single dataset. DICOM标准允许在单个数据集中混合显式长度和未定义长度的元素。 As for example, a SQ Data Element of Undefined Length encapsulating Items of Explicit Length (see PS 3.5 Table 7.5-2.). 例如,一个不确定长度的SQ数据元素封装了显式长度的项(请参阅PS 3.5表7.5-2。)。 In this case you will need the Sequence Delimitation Item (FFFE, E0DD) without the Item delimitation tag (FFFE, E00D). 在这种情况下,您将需要没有项目定界标记(FFFE,E00D)的序列定界项目(FFFE,E0DD)。

Another example provided by the standard shows a SQ Data Element of Undefined Length encapsulating Items of both Explicit and Undefined Length (see Table 7.5-3). 该标准提供的另一个示例显示了一个SQ数据元素,该元素的长度不确定,封装了显式和长度不确定的项(请参见表7.5-3)。 This will require Item Delimitation Tag (FFFE, E00D) for the undefined length item plus the Sequence Delimitation Item (FFFE, E0DD). 对于未定义长度的项目,这将需要项目定界标记(FFFE,E00D),再加上序列定界项目(FFFE,E0DD)。

Also, note that explicit length sequence is not very common. 另外,请注意,显式长度序列不是很常见。

see Dicom part 5, 7.5.2. 参见Dicom第5部分,7.5.2。

If you have undefined length you definitely have to use Sequence Delimitation Items (Tags) and and Item Delimitation Tags 如果长度不确定,则必须使用“序列定界项目(标签)”和“项目定界标签”

If you have defined length (n) you can put everything in that n bytes (including any tag and item you want). 如果已定义长度(n),则可以将所有内容都放入该n个字节中(包括所需的任何标签和项目)。 But it will not be under the scope of Dicom definition. 但这将不在Dicom定义的范围内。 It will be just data. 这仅仅是数据。 and what is in there depends on the meaning of that data. 其中的内容取决于该数据的含义。

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

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