Conversion of channel 3 to channel 1
Hi All, I have depth data stream. I am getting the data type of of video stream is 16 which is CV_8UC3. How to convert this channel 3 to channel 1? and also, This video stream contains only the normalized depth data. So, how type is 16?
Thank you.
You are looking for this.
Thank for your comment. I am not sure but cvtcolor may not work in this case because data is a depth. But I got the other solution. As I am getting the 3 same channels which contain the normalized depth data. So, I use "spilt" function to extract one matrix only.