Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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);