Thanks for your origin code. I have wrapper the lut.h to python package and already use it on my own project. Enjoy it [PyApplyLUT](https://github.com/CKboss/PyApplyLUT)