Parameters

lookupTable
8-bit lookup table array to be filled by this method.

type
Flag that indicates whether the LookupTable contains signed or unsigned data.

Remarks

Suppose you have a LookupTable with 4096 colors, the first 200 colors are black and the last 30 are white, the rest of the colors between black and white are gray. This is what the method will provide :
NumberOfEntries (property of CountLookupTableColorsResult) : 3868.
FirstIndex (property of CountLookupTableColorsResult) : 199.

In more detail this is:
Total number of entries: 4096 (0 - 4095).
First index of the end color: 4095 - 30 + 1 (+1 to add the first index of the end color to the range).
Number of occurrences of the starting color: 200 (0 - 199).
The last index of the start color: 199.
Total number of entries: (4095 - 30 + 1) - 199 + 1.

This method supports 12 and 16-bit grayscale images. Support for 12 and 16-bit grayscale images is available only in the Document/Medical toolkits.