HistogramGrayTable property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax long HistogramGrayTable (long nIndex);

Overview:  Refer to Using Histograms.

Remarks

(Medical only) Is a table that charts the number of occurrences of each intensity level in a 12-bit or 16-bit grayscale bitmap.

Intensity levels in a grayscale bitmap can range from 0 to ( 216 – 1), depending on whether the image is 12-bit or 16-bit grayscale, and the LowBit and HighBit of the image. The LowBit and HighBit identify which bits in a 12-bit or 16-bit entry are used. The LowBit and HighBit can be obtained by calling the GetMinMaxBits method and then looking at the MinBit and MaxBit properties.

Specifically, a histogram table for a 12-bit or 16-bit grayscale image will have 2(HighBit – LowBit + 1) entries.

Each intensity value present in the image corresponds to a specific table index. The number of entries in the HistogramGrayTable can be found by examining the HistogramGrayTableSize property. The HistogramGrayTableSize property and the HistogramGrayTable property both can change after each call to the GetHistogramGray method. For more information on the relationship between the intensity value and the location of the count within the HistogramGrayTable, refer to the GetHistogramGray method.

See Also

Elements:  GetHistogramGray method, HistogramGrayTableSize property, GetHistogram method, HistogramTable property

Topics:  Raster Images: Using Histograms
Changing Brightness and Contrast