DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomLabel Class / ROIMean Method
The image from which the pixel data is taken for the calculations
If true, then the rescale slope and offset are applied to the data values






In This Topic
    ROIMean Method
    In This Topic
    Returns the mean value of the pixels in the ROI
    Syntax
    'Declaration
     
    
    Public Function ROIMean( _
       ByVal Image As DicomImage, _
       ByVal Scale As System.Boolean _
    ) As System.Double
    'Usage
     
    
    Dim instance As DicomLabel
    Dim Image As DicomImage
    Dim Scale As System.Boolean
    Dim value As System.Double
     
    value = instance.ROIMean(Image, Scale)
    public System.double ROIMean( 
       DicomImage Image,
       System.bool Scale
    )
    public function ROIMean( 
        Image: DicomImage;
        Scale: System.Boolean
    ): System.Double; 
    public function ROIMean( 
       Image : DicomImage,
       Scale : System.boolean
    ) : System.double;
    public: System.double ROIMean( 
       DicomImage* Image,
       System.bool Scale
    ) 
    public:
    System.double ROIMean( 
       DicomImage^ Image,
       System.bool Scale
    ) 

    Parameters

    Image
    The image from which the pixel data is taken for the calculations
    Scale
    If true, then the rescale slope and offset are applied to the data values

    Return Value

    The mean value of the pixels in the ROI
    Remarks
    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