DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / GetMinAndMax Method / GetMinAndMax(Single,Single,Single,Boolean) Method
The minimum value found
The maximum value found
Proportion of extreme values to ignore (in range 0.0 to 1.0)
Whether to apply scaling/modality lookup table transformation






In This Topic
    GetMinAndMax(Single,Single,Single,Boolean) Method
    In This Topic
    Find the maximum and minimum pixel data values in the pixel data
    Syntax
    'Declaration
     
    
    Public Overloads Sub GetMinAndMax( _
       ByRef Min As System.Single, _
       ByRef Max As System.Single, _
       ByVal Centile As System.Single, _
       ByVal Scale As System.Boolean _
    ) 
    'Usage
     
    
    Dim instance As DicomImage
    Dim Min As System.Single
    Dim Max As System.Single
    Dim Centile As System.Single
    Dim Scale As System.Boolean
     
    instance.GetMinAndMax(Min, Max, Centile, Scale)
    public void GetMinAndMax( 
       out System.float Min,
       out System.float Max,
       System.float Centile,
       System.bool Scale
    )
    public procedure GetMinAndMax( 
       Out  Min: System.Single;
       Out  Max: System.Single;
        Centile: System.Single;
        Scale: System.Boolean
    ); 
    public function GetMinAndMax( 
       Min : System.float,
       Max : System.float,
       Centile : System.float,
       Scale : System.boolean
    );
    public: void GetMinAndMax( 
       [PARAMFLAG::Out] System.float Min,
       [PARAMFLAG::Out] System.float Max,
       System.float Centile,
       System.bool Scale
    ) 
    public:
    void GetMinAndMax( 
       [Out] System.float Min,
       [Out] System.float Max,
       System.float Centile,
       System.bool Scale
    ) 

    Parameters

    Min
    The minimum value found
    Max
    The maximum value found
    Centile
    Proportion of extreme values to ignore (in range 0.0 to 1.0)
    Scale
    Whether to apply scaling/modality lookup table transformation
    Remarks

    Pixel padding values are ignored

    If Scale is false, then the values returned are "raw" values before application of rescaling or modality lookup tables

    If Scale is true, then the values returned are transformed using the modality slope and intercept or modality lookup tables as appropriate to the image

    If it is necessray to use separate control for the 2 scaling methods, then the GetMinAndMax(Single,Single,Single,Boolean,Boolean) override may be used instead.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also