DicomObjects.NET.V8
DicomObjects Namespace / DicomLabel Class / ROILength Method / ROILength(DicomViewer,Int32) Method
The Viewer from which the Image is drawn
The specific Index of the Image in the Viewer's Images Collection



In This Topic
    ROILength(DicomViewer,Int32) Method
    In This Topic
    Length of the boundary of a Non-Image-Tied DicomLabel, interpreted as a region of interest.
    Syntax
    'Declaration
     
    Public Overloads Function ROILength( _
       ByVal Viewer As DicomViewer, _
       ByVal Index As Integer _
    ) As Single
    'Usage
     
    Dim instance As DicomLabel
    Dim Viewer As DicomViewer
    Dim Index As Integer
    Dim value As Single
     
    value = instance.ROILength(Viewer, Index)
    public float ROILength( 
       DicomViewer Viewer,
       int Index
    )
    public:
    float ROILength( 
       DicomViewer^ Viewer,
       int Index
    ) 

    Parameters

    Viewer
    The Viewer from which the Image is drawn
    Index
    The specific Index of the Image in the Viewer's Images Collection

    Return Value

    This property may not be used for DicomLabels of type Bitmap.

    The length is the length of the entire circumference of the label.

    Where pixel dimensions for the whole image are present within the image data, these are used to scale the length appropriately. Multiple region calibration areas (e.g. in U/S images) are fully supported.

    The units used (which for uncalibrated data may simply be pixels) is returned by ROIDistanceUnits.

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also