【发布时间】:2014-08-07 07:56:18
【问题描述】:
使用 Microsoft Kinect VS 2013 编写多线程代码。
char fnameC[sizeof "C:\\Users\\Adam\\Desktop\\Skeleton_RGBDepth_DataAcquisition2013\\Skeleton_RGBDepth_DataAcquisition2013\\Color_Image\\Color_01_c1_00_00_000.png"];
char fnameD[sizeof "C:\\Users\\Adam\\Desktop\\Skeleton_RGBDepth_DataAcquisition2013\\Skeleton_RGBDepth_DataAcquisition2013\\Depth_Image\\Depth_01_c1_00_00_000.png"];
int main() {
set up stuff....
while(1) {
setup of the color image frame and depth image frame...
std::thread im01(cv::imwrite, std::ref(fnameC), std::ref(colorImage));
std::thread im02(cv::imwrite, std::ref(fnameD), std::ref(depthImage));
im01.join();
im02.join();
}
}
我收到一个错误:
错误 1 错误 C2090:函数返回数组 c:\program files (x86)\microsoft visual studio 12.0\vc\include\xrefwrap 432 1 Skeleton_RGBDepth_DataAcquisition2013
不太确定发生了什么...需要帮助,谢谢;会喜欢的!
【问题讨论】:
标签: c++ multithreading visual-c++ file-io