marek-simonik / record3d-simple-wifi-streaming-demo

MIT License
15 stars 6 forks source link

Assistance saving depth images to files #5

Closed sleeplessTLV closed 3 weeks ago

sleeplessTLV commented 3 weeks ago

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