Search Results for

    Show / Hide Table of Contents

    Class Histogram

    Representation of a histogram.

    The Histogram can be seen as an integer array of value counts divided into bins from a specified minimum to maximum value. Bins are accessed via their absolute position, regardless of specified minimum bin.

    Inheritance
    Object
    Histogram
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Dicom.Imaging.Mathematics
    Assembly: cs.temp.dll.dll
    Syntax
    public class Histogram

    Constructors

    Histogram(Int32, Int32)

    Initializes an intstance of the Histogram class.

    Declaration
    public Histogram(int min, int max)
    Parameters
    Type Name Description
    Int32 min

    Minimum histogram bin.

    Int32 max

    Maximum histogram bin.

    Properties

    Item[Int32]

    Gets the value count at histogram bin value.

    Declaration
    public int this[int value] { get; }
    Parameters
    Type Name Description
    Int32 value

    Bin at which value count is requested.

    Property Value
    Type Description
    Int32

    Value count at value.

    WindowEnd

    Gets the end bin of the histogram window.

    Declaration
    public int WindowEnd { get; }
    Property Value
    Type Description
    Int32

    WindowStart

    Gets the start bin of the histogram window.

    Declaration
    public int WindowStart { get; }
    Property Value
    Type Description
    Int32

    WindowTotal

    Gets the total sum inside the window given by WindowStart and WindowEnd.

    Declaration
    public int WindowTotal { get; }
    Property Value
    Type Description
    Int32

    Methods

    Add(Int32)

    Increment histogram at bin position value.

    Declaration
    public void Add(int value)
    Parameters
    Type Name Description
    Int32 value

    Bin position at which histogram should be incremented.

    ApplyWindow(Int32)

    Define WindowStart and WindowEnd properties by gradually shrinking the window until the value count inside the window is less than or equal to percent % of the total value count.

    Declaration
    public void ApplyWindow(int percent)
    Parameters
    Type Name Description
    Int32 percent

    Target percentage for the active window.

    ApplyWindow(Int32, Int32)

    Apply an active histogram window at the specified start and end bins.

    Declaration
    public void ApplyWindow(int start, int end)
    Parameters
    Type Name Description
    Int32 start

    Position of the window's start bin.

    Int32 end

    Position of the window's end bin.

    Clear(Int32)

    Reset histogram at bin position value to 0.

    Declaration
    public void Clear(int value)
    Parameters
    Type Name Description
    Int32 value

    Bin position at which histogram should be reset.

    In This Article
    Back to top Copyright (c) 2012-2021 fo-dicom contributors