HistogramGrayTableSize property (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

long HistogramGrayTableSize ();

Overview

Refer to Using Histograms.

Remarks

(Read Only) (Medical only) Is the number of entries in the HistogramGrayTable. This property (along with the HistogramGrayTable) is filled after each call to the GetHistogramGray method.

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