DicomObjects.NET Core Documentation
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



GetMinAndMax(Single,Single,Single,Boolean) Method
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)

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: 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