First time here? Check out the FAQ!
answered 2017-03-11 02:39:26 -0600
if you want to use it with cv::LUT , you need a cv::Mat, not a simple int[] array:
int uniform[256] = { ... }; Mat out; Mat lookup(1,256,CV_32S, uniform); // make a Mat from it LUT(inp,lookup,out);