Hi,
I want to do lookuptable for 16 bit image. I have image of 16 bit(CV_16UC1), then i naormalize image with RGB give value and store in Mat variable called lut(type - CV_16UC3). After that, i split Mat lut and store in lut_channels.
int planes = 3;
vector<mat> lut_channels(planes);
vector<mat> merge_elem;
split(lut, lut_channels);
for (int k = 0; k < planes; ++k)
{
Mat Plane_images = Mat(Mat::zeros(image.size(), image.type()));
LUT(image, lut_channels[k], Plane_images); //crash here
merge_elem.push_back(Plane_images);
}
It is crashes in LUT function.
Can someone help me to solve this problem.
Thanks in advance.