LEADTOOLS DICOM類庫提供了先進的注釋支持,可顯示和操作圖形和文本注釋。DICOM標準定義了用于描述矢量圖形和文本注釋屬性的"Graphic Annotation Module"。LEADTOOLS提供了大量的方法來操作DICOM圖形、文字屬性和相關屬性。
和 可用于檢索和更新元素的值。下列方法可用于管理"Referenced Series Sequence" (0008,1115)下的一組參考圖像:
-
DicomDataSet.AddPresentationStateImageReference
-
DicomDataSet.RemovePresentationStateImageReference
-
DicomDataSet.RemoveAllPresentationStateImageReferences
-
DicomDataSet.GetPresentationStateImageReference
-
DicomDataSet.GetPresentationStateImageReferenceCount
-
DicomDataSet.FindFirstPresentationStateReferencedSeriesItem
-
DicomDataSet.FindNextPresentationStateReferencedSeriesItem
-
DicomDataSet.GetPresentationStateImageReferenceSOPInstance
LEADTOOLS還提供了一套廣泛的方法來操作"Graphic Layer Module"。該模塊定義了圖形注釋、文本注釋、曲線等圖層特性。通過調用可創建新的圖層,并通過調用來進行命名。一旦創建圖層,你可以調用和來檢索和更新元素值。調用或可刪除圖層。 DicomDataSet.RemoveAllLayers將刪除數據集中的所有圖層。其他一些類成員可用于保留層:
-
DicomDataSet.LayerCount
-
DicomDataSet.GetLayerIndex
-
DicomDataSet.GetLayerGraphicObjectCount
-
DicomDataSet.RemoveLayerGraphicObjects
-
DicomDataSet.GetLayerTextObjectCount
-
DicomDataSet.RemoveLayerTextObjects
-
DicomDataSet.GetLayerElementByIndex
-
DicomDataSet.GetLayerElementByName
調用DicomDataSet.CreateGraphicObject可創建新的圖形注釋。一個創建圖形對象,您可以調用DicomDataSet.GetGraphicObjectInformation和DicomDataSet.SetGraphicObjectInformation來檢索和更新元素值。其他一些方法可用于操作圖形對象:
-
DicomDataSet.GetGraphicObjectCount
-
DicomDataSet.RemoveAllGraphicObjects
-
DicomDataSet.RemoveGraphicObject
-
DicomDataSet.GetGraphicObjPointCount
-
DicomDataSet.GetGraphicObjElement
調用DicomDataSet.CreateCompoundGraphic可創建一種新的組合圖形注解。一旦創建圖形對象,你可以調用DicomDataSet.GetCompoundGraphicInformation和DicomDataSet.SetCompoundGraphicInformation來檢索和更新元素值。一些其他方法可用于操縱圖形對象:
-
DicomDataSet.GetCompoundGraphicCount
-
DicomDataSet.RemoveAllCompoundGraphics
-
DicomDataSet.RemoveCompoundGraphic
-
DicomDataSet.GetCompoundGraphicPointCount
-
DicomDataSet.GetCompoundGraphicElement
-
DicomDataSet.GetCompoundGraphicMajorTickCount
調用DicomDataSet.CreateTextObject可創建一個新的文本注釋。一旦文本注釋創建成功,你可以調用 DicomDataSet.GetTextObjectInformation 和DicomDataSet.SetTextObjectInformation來檢索和更新元素值。下列方法可用于處理文本對象:
-
DicomDataSet.RemoveTextObject
-
DicomDataSet.GetTextObjectCount
-
DicomDataSet.RemoveAllTextObjects
-
DicomDataSet.GetTextObjElement
"Graphic Annotation Module" 中的"Referenced Image Sequence" (0008,1140)用于定于圖像集。 LEADTOOLS提供了下列方法并按照順序來操作項目:
-
DicomDataSet.AddLayerImageReference
-
DicomDataSet.GetLayerImageReferenceCount
-
DicomDataSet.GetLayerImageReferenceSOPInstance
-
DicomDataSet.RemoveImageReferenceFromLayer
-
DicomDataSet.RemoveAllImageReferencesFromLayer
-
DicomDataSet.RemoveAllImageReferences
-
DicomDataSet.GetLayerImageReferenceElement
"Graphic Annotation Sequence" (0070,0001)中的項目可用下列方法進行操作:
-
DicomDataSet.CreateGraphicAnnSQItem
-
DicomDataSet.FindFirstGraphicAnnSQItem
-
DicomDataSet.FindNextGraphicAnnSQItem
-
DicomDataSet.GetLayerName
-
DicomDataSet.SetLayerName
利用Leadtools.Dicom.Annotations.dll程序集中所包含的下列方法,可在DICOM注解和Leadtools.Annotations.AnnObject之間相互轉換。
-
Leadtools.Dicom.Annotations.FromAnnObject
-
Leadtools.Dicom.Annotations.FromAnnObjectToDataSet
-
Leadtools.Dicom.Annotations.ToAnnObject
利用Leadtools.Dicom.Annotations.Core.dll程序集中所包含的下列方法,可在DICOM Annotations和 Leadtools.Annotations.Core.AnnObject之間相互轉換。
-
Leadtools.Dicom.Annotations.Core.ToAnnObject
-
Leadtools.Dicom.Annotations.Core.FromAnnObjectToDataSet
-
Leadtools.Dicom.Annotations.Core.FromAnnContainerToDataSet
-
Leadtools.Dicom.Annotations.Core.FromDataSetToAnnContainer
標簽:
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件網