Skip to content

Instantly share code, notes, and snippets.

@universax
Created March 23, 2020 06:57
Show Gist options
  • Save universax/dc7007dc053dad51f6d6c72658265cbb to your computer and use it in GitHub Desktop.
Save universax/dc7007dc053dad51f6d6c72658265cbb to your computer and use it in GitHub Desktop.
azure kinectのデプスをCVdeファイルに書き出すメモ
// Write to file
std::string rec_filename = "C:/Users/unive/Develop/kinect_data/depth/depth_" + std::to_string(framecount) + ".png";
cv::imwrite(rec_filename, depth_mat, std::vector<int>(0));
framecount++;
printf("frame: %d\n", framecount);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment