Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

LUT for 16bit image

$
0
0
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 lut_channels(planes); vector 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.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>