简体   繁体   English

如何确定每个DICOM图像使用哪种传输语法?

[英]How to determine which transfer syntax to use for each DICOM image?

I'm very new to DICOM protocol, and I'm having a questions related to "Transfer Syntax" that needs to be chosen, before sending the images. 我对DICOM协议非常陌生,在发送图像之前,我有一个与“传输语法”相关的问题需要选择。

I have a list of images that I want to send to a remote server. 我有一个要发送到远程服务器的图像列表。 Images in that list can be in one of the following format: CR, CT, DOC, DX, ES, KO, MG, MR, NM, OT, PR, PT, RF, SC, US, XA. 该列表中的图像可以采用以下格式之一:CR,CT,DOC,DX,ES,KO,MG,MR,NM,OT,PR,PT,RF,SC,US,XA。 So I was wondering if there is some list where I can see which transfer syntax, corresponds to which DICOM format? 所以我想知道是否有一些列表可以查看哪种传输语法,对应于哪种DICOM格式? I can take my DICOM images and determine their format from above, but I'm not sure what transfer syntax to use for each of them. 我可以从上面拍摄DICOM图像并确定其格式,但是我不确定每个图像要使用哪种传输语法。

This is an example, when I'm hard-coding for one image: 这是一个示例,当我为一张图像进行硬编码时:

   DicomDataSet ct = new DicomDataSet("CT.dcm");
   DicomDataSetCollection instancesToSend = new DicomDataSetCollection();
   instancesToSend.Add(ct);
   DicomAssociation connection = new DicomAssociation();
   // "Send CT in Implicit VR Little endian format"
   connection.RequestedContexts.Add(ct.SOPClass, "1.2.840.10008.1.2");
   connection.Open("remote host", 104, "client", "server"); 
   connection.SendInstances(instancesToSend);
   connection.Close();

As I said, I have list of images. 如我所说,我有图像列表。 I can take each of them in a loop, but how can I know which transfer syntax to use for each DICOM image? 我可以循环使用它们中的每一个,但是如何知道每个DICOM图像使用哪种传输语法?

As long as you only want to create and send images, a reasonable decision is to support Implicit Little Endian only. 只要您只想创建和发送图像,一个合理的决定就是仅支持Implicit Little Endian。 It is the default Transfer Syntax in DICOM - each system that claims to be DICOM conformant must support it. 它是DICOM中的默认传输语法-声称符合DICOM的每个系统都必须支持它。

It is going to become much more complicated when you want to apply lossy compression or need to receive objects. 当您要应用有损压缩或需要接收对象时,它将变得更加复杂。

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

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