Hi,
I am using the demo.cpp example for now since it compiles and runs for me fine.
On the screen, it uses cv::imshow to display the RGB, depth and confidence images.
I successfully use
result = imwrite("alpha.jpg", rgb, compression_params);
to save the RGB image and it is fine.
but when I try to do the same to the depth image, I get a black jpg (or BMP, or PNG) - tried all of them.
I guess depth is a different CV Mat object, and imshow knows how to display it, but I could not find a way
to find out WHICH Mat object it is.
any advice?
thanks as always
Hi, I am using the demo.cpp example for now since it compiles and runs for me fine. On the screen, it uses cv::imshow to display the RGB, depth and confidence images. I successfully use result = imwrite("alpha.jpg", rgb, compression_params); to save the RGB image and it is fine. but when I try to do the same to the depth image, I get a black jpg (or BMP, or PNG) - tried all of them. I guess depth is a different CV Mat object, and imshow knows how to display it, but I could not find a way to find out WHICH Mat object it is. any advice? thanks as always