DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / Histogram Method
The lowest pixel value to be included
The highest pixel value to be included
The number of adjacent pixel values to be grouped into each bin



In This Topic
    Histogram Method
    In This Topic
    Returns an array containing the distribution of raw pixel values.
    Syntax
    'Declaration
     
    Public Function Histogram( _
       ByVal MinValue As Integer, _
       ByVal MaxValue As Integer, _
       ByVal BinSize As Integer _
    ) As Integer()
    'Usage
     
    Dim instance As DicomImage
    Dim MinValue As Integer
    Dim MaxValue As Integer
    Dim BinSize As Integer
    Dim value() As Integer
     
    value = instance.Histogram(MinValue, MaxValue, BinSize)
    public int[] Histogram( 
       int MinValue,
       int MaxValue,
       int BinSize
    )
    public:
    array<int>^ Histogram( 
       int MinValue,
       int MaxValue,
       int BinSize
    ) 

    Parameters

    MinValue
    The lowest pixel value to be included
    MaxValue
    The highest pixel value to be included
    BinSize
    The number of adjacent pixel values to be grouped into each bin

    Return Value

    An integer array containing the distribution.
    Remarks
    The format of the returned data is suitable for creating DICOM Image Histogram modules, though to use this a few other attributes must be added. In keeping with the image histogram module, the values used are raw pixel values before application of a modality lookup table or rescaling � apply Lookup Tables if such translation is required. For multi-frame images, only the first frame is used for this method.
    Requirements

    Target Platforms: .NET CLR 3.5 or higher

    See Also