DicomObjects.NET.V8
DicomObjects Namespace / DicomDataSet Class / GetMinAndMax Method / GetMinAndMax(Single,Single,Single,Boolean) Method
The minimum value found
The maximum value found
Proportion of extreme values to ignore
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 Single, _
       ByRef Max As Single, _
       ByVal Centile As Single, _
       ByVal Scale As Boolean _
    ) 
    'Usage
     
    Dim instance As DicomDataSet
    Dim Min As Single
    Dim Max As Single
    Dim Centile As Single
    Dim Scale As Boolean
     
    instance.GetMinAndMax(Min, Max, Centile, Scale)
    public void GetMinAndMax( 
       out float Min,
       out float Max,
       float Centile,
       bool Scale
    )
    public:
    void GetMinAndMax( 
       [Out] float Min,
       [Out] float Max,
       float Centile,
       bool Scale
    ) 

    Parameters

    Min
    The minimum value found
    Max
    The maximum value found
    Centile
    Proportion of extreme values to ignore
    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.0 or higher

    See Also