Available in LEADTOOLS Medical Imaging toolkits.
LevelLUTLength example for Visual Basic
This example writes out the number of entries in the LUT.
Text1.Text = CStr(Lead1.LevelLUTLength)