DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomDataSet Class / GetMinAndMax Method / GetMinAndMax(Single,Single,Single,Boolean,Boolean) Method
The minimum value found
The maximum value found
Centile as Float
Whether to apply modality lookup table transformation
Whether to apply modality rescale slope and offset transformations



In This Topic
    GetMinAndMax(Single,Single,Single,Boolean,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 ScaleLUT As Boolean, _
       ByVal ScaleRescale As Boolean _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim Min As Single
    Dim Max As Single
    Dim Centile As Single
    Dim ScaleLUT As Boolean
    Dim ScaleRescale As Boolean
     
    instance.GetMinAndMax(Min, Max, Centile, ScaleLUT, ScaleRescale)
    public void GetMinAndMax( 
       out float Min,
       out float Max,
       float Centile,
       bool ScaleLUT,
       bool ScaleRescale
    )
    public:
    void GetMinAndMax( 
       [Out] float Min,
       [Out] float Max,
       float Centile,
       bool ScaleLUT,
       bool ScaleRescale
    ) 

    Parameters

    Min
    The minimum value found
    Max
    The maximum value found
    Centile
    Centile as Float
    ScaleLUT
    Whether to apply modality lookup table transformation
    ScaleRescale
    Whether to apply modality rescale slope and offset transformations
    Remarks

    Pixel padding values are ignored

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

    If ScaleLUT 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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also