opencv 2.4.11 record 16 bit depth image as video
Hi there, As mentioned in title, I would like to ask is there any way to record 16 bit depth image (Gray scale image) as video and do not compress. Until now, I can only record depth image as 24bit 3 channel rgb video, but it is not correct format for depth image. Depth image should be 16 bit 1 channel format. Is there any way to do in opencv? I am using openNI 2.2 + kinect + opencv 2.4.11 + visual studio 2013 + c++ for my project. My project will first read from kinect and convert the depth stream into opencv mat type.
Thanks~
If your camera is able to get depth frames, then what you should do is to get the frames in the correct format ;)
Hi, thanks for reply :) My kinect can get 16bit depth image, and I also able to save it as png image file type. But when I use videowriter in opencv, it just save video type as RGB24 and 24bit which is not correct?
cv::VideoWriter videoDepth("D:\depth-2.avi", CV_FOURCC('D', 'I', 'B', ' '), 30, cv::Size(WIDTH, HEIGHT), false);
it is my videowrite, thanks :)