Available in the LEADTOOLS Imaging toolkit.
GetFunctionalLookupTable example for Visual Basic
LEAD1.GetFunctionalLookupTable 0, 255, 5, FLT_EXP LEAD1.RemapIntensity CHANNEL_MASTER