Applying LUT on a cv::Mat

maybe explain, what you need in greater detail ?