DicomObjects.NET.8.48 Documentation
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 System.Integer, _
       ByVal MaxValue As System.Integer, _
       ByVal BinSize As System.Integer _
    ) As System.Integer()
    'Usage
     
    
    Dim instance As DicomImage
    Dim MinValue As System.Integer
    Dim MaxValue As System.Integer
    Dim BinSize As System.Integer
    Dim value() As System.Integer
     
    value = instance.Histogram(MinValue, MaxValue, BinSize)
    public System.int[] Histogram( 
       System.int MinValue,
       System.int MaxValue,
       System.int BinSize
    )
    public function Histogram( 
        MinValue: System.Integer;
        MaxValue: System.Integer;
        BinSize: System.Integer
    ): System.array of Integer; 
    public function Histogram( 
       MinValue : System.int,
       MaxValue : System.int,
       BinSize : System.int
    ) : System.int[];
    public: System.int[]* Histogram( 
       System.int MinValue,
       System.int MaxValue,
       System.int BinSize
    ) 
    public:
    System.array<int>^ Histogram( 
       System.int MinValue,
       System.int MaxValue,
       System.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 4.8 or higher

    See Also