本文整理汇总了C++中Kinect::displayDepth方法的典型用法代码示例。如果您正苦于以下问题:C++ Kinect::displayDepth方法的具体用法?C++ Kinect::displayDepth怎么用?C++ Kinect::displayDepth使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Kinect
的用法示例。
在下文中一共展示了Kinect::displayDepth方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MainProc
//.........这里部分代码省略.........
std::string errorMsg = "Could not open help file\nError: ";
MessageBox(handle, (errorMsg + to_string(status)).c_str(),
"Error", MB_ICONERROR | MB_OK);
}
// TODO: Finish writing HTML help page
break;
}
case IDM_ABOUT: {
DialogBox(gInstance, MAKEINTRESOURCE(IDD_ABOUTBOX), handle,
AboutCbk);
break;
}
}
break;
}
case WM_PAINT: {
PAINTSTRUCT ps;
HDC hdc;
hdc = BeginPaint(handle, &ps);
// If we're painting the video display window
if (handle == gProjectorKnt.getRegisteredVideoWindow()) {
gProjectorKnt.displayVideo(gDisplayWindow, 0, 0, hdc);
}
// If we're painting the depth image display window
else if (handle == gProjectorKnt.getRegisteredDepthWindow()) {
gProjectorKnt.displayDepth(gDisplayWindow, 0, 0, hdc);
}
EndPaint(handle, &ps);
break;
}
case WM_DESTROY: {
// If the display window is being closed, exit the application
if (handle == gDisplayWindow) {
PostQuitMessage(0);
}
break;
}
case WM_KINECT_VIDEOSTART: {
// Change video window icon to green because the stream started
PostMessage(handle, WM_SETICON, ICON_SMALL,
reinterpret_cast<LPARAM>(gKinectON));
PostMessage(handle, WM_SETICON, ICON_BIG,
reinterpret_cast<LPARAM>(gKinectON));
// Change Start/Stop button text to "Stop"
char windowText[16];
EnumChildWindows(handle, StartStreamChildCbk,
reinterpret_cast<LPARAM>(windowText));
break;
}
case WM_KINECT_VIDEOSTOP: {