DicomObjects.NET.V8
DicomObjects Namespace / DicomLabel Class / ROIArea Method / ROIArea(DicomViewer,Int32) Method
The DicomViewer object which holds the Image that measurement is being taken on
The Image index of the image that measurement is being taken on



In This Topic
    ROIArea(DicomViewer,Int32) Method
    In This Topic
    Returns the area of the ROI
    Syntax
    'Declaration
     
    Public Overloads Function ROIArea( _
       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.ROIArea(Viewer, Index)
    public float ROIArea( 
       DicomViewer Viewer,
       int Index
    )
    public:
    float ROIArea( 
       DicomViewer^ Viewer,
       int Index
    ) 

    Parameters

    Viewer
    The DicomViewer object which holds the Image that measurement is being taken on
    Index
    The Image index of the image that measurement is being taken on

    Return Value

    A single precision float number
    Remarks

    Where pixel dimensions for the whole image are present within the image data, these are used to scale the area appropriately, and multiple region calibration areas (e.g. in U/S images) are supported. The units used (which for uncalibrated data may simply be pixels) is returned by ROIDistanceUnits (for this property, they should be interpreted as square units of course)

    This method may only be used for DicomLabels of type Rectangle, Ellipse, Polygon or Bitmap.

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also