DicomObjects Reference
DicomObjects Reference / DicomImage Object / ReferenceLine Method
The image whose position is to be shown
Whether to generate an intersection line (as opposed to a projection)
ReferenceLine Method
Description
Creates a reference line label
Syntax
Visual Basic
Public Function ReferenceLine( _
   ByVal Image As DicomImage, _
   ByVal Intersection As Boolean _
) As DicomLabel
Parameters
Image
The image whose position is to be shown
Intersection
Whether to generate an intersection line (as opposed to a projection)
Remarks

This method is used which you wish to show the relative positions of one image on another.  It is typically used in CT and MRI to indicate the position of main imaging sections relative to a previously obtained localiser or “scout” image.

The method is called on the “localiser” image, and the first parameter is the main section who’s position is to be shown.  The result is a new DicomLabel object which is designed to be added to the localiser image’s Labels collection.  E.g. if “localiser” and “main_image” are defined as DicomObjects, then the following code will add an appropriate reference line to the localiser image:

Set NewLabel = localiser.ReferenceLine(main_image, false)
Localiser.Labels.Add NewLabel

  • If true, then the DicomLabel will still be of type doLabelLine, representing the intersection of the two image planes.
  • If false, then the DicomLabel returned will be of type doLabelPolygon with 4 vertices, each representing the projection of a corner of the main image onto the plane of the localiser.
See Also