DicomObjects.NET.8.48 Documentation
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 System.Integer _
    ) As System.Single
    public System.float ROIArea( 
       DicomViewer Viewer,
       System.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.8 or higher

    See Also