Available in the LEADTOOLS Imaging toolkit.
GetFunctionalLookupTable example for C++ 4.0 and later
m_Lead1.GetFunctionalLookupTable(0, 255, 5, FLT_EXP); m_Lead1.RemapIntensity(CHANNEL_MASTER);