Converts all of the Graphic Annotation Sequence (DICOM Annotations) stored in a Leadtools.Dicom.DicomDataSet into a LEAD AnnContainer that contains LEAD Leadtools.Annotations.Engine.AnnObject objects.
public AnnContainer FromDataSetToAnnContainer(
Public Function FromDataSetToAnnContainer(
ByVal ds As DicomDataSet,
ByVal graphicAnnSqItem As DicomElement,
ByVal imageSopInstanceUid As String
) As AnnContainer
The Leadtools.Dicom.DicomDataSet that contains the Graphic Annotation Sequence (DICOM Annotations) being converted.
Pointer to an item element under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".
The SOPInstanceUID of a DICOM Image. Only those annotations associated with the imageSopInstanceUid will be converted. All other annotations will be ignored.
This method takes Leadtools.Dicom.DicomDataSet as input, and converts all of the DICOM annotations stored in the Graphic Annotation Sequence into LEAD annotations.
The LEAD annotations are returned as an AnnContainer.
Note that this method preserves any ruler calibrations, as the ruler calibration is stored in the AnnContainer.
The ds can contain annotations associated with more than one DICOM Image (i.e. SOPInstanceUID). This overload only converts those annotations associated with imageSopInstanceUid.
All other annotations will be ignored.
For an example, refer to DicomUidOrgRoot.