kinect实现骨架提取和显示,亲测可用,好资源
kinect实现骨架提取和显示,亲测可用,代码绝对管用,非常好的资源
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-07-04 15:59 DepthBasics-D2D
目录 0 2018-07-04 15:54 DepthBasics-D2DDebug
文件 62118 2018-07-04 15:54 DepthBasics-D2DDebugCL.read.1.tlog
文件 1874 2018-07-04 15:54 DepthBasics-D2DDebugCL.write.1.tlog
文件 484352 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.exe
文件 682 2012-09-26 10:38 DepthBasics-D2DDebugDepthBasics-D2D.exe.embed.manifest
文件 748 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.exe.embed.manifest.res
文件 640 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.exe.intermediate.manifest
文件 1049484 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.ilk
文件 74 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.lastbuildstate
文件 982 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.log
文件 2903040 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.pdb
文件 713 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.vcxprojResolveAssemblyReference.cache
文件 0 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.write.1.tlog
文件 220 2012-09-26 10:38 DepthBasics-D2DDebugDepthBasics-D2D_manifest.rc
文件 118234 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics.obj
文件 32668 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics.res
文件 110608 2018-07-04 15:54 DepthBasics-D2DDebugImageRenderer.obj
文件 2690 2018-07-04 15:54 DepthBasics-D2DDebugcl.command.1.tlog
文件 2 2018-07-04 15:54 DepthBasics-D2DDebuglink-cvtres.read.1.tlog
文件 2 2018-07-04 15:54 DepthBasics-D2DDebuglink-cvtres.write.1.tlog
文件 2 2018-07-04 15:54 DepthBasics-D2DDebuglink.7636-cvtres.read.1.tlog
文件 2 2018-07-04 15:54 DepthBasics-D2DDebuglink.7636-cvtres.write.1.tlog
文件 2 2018-07-04 15:54 DepthBasics-D2DDebuglink.7636.read.1.tlog
文件 2 2018-07-04 15:54 DepthBasics-D2DDebuglink.7636.write.1.tlog
文件 4638 2018-07-04 15:54 DepthBasics-D2DDebuglink.command.1.tlog
文件 8192 2018-07-04 15:54 DepthBasics-D2DDebuglink.read.1.tlog
文件 2230 2018-07-04 15:54 DepthBasics-D2DDebuglink.write.1.tlog
文件 862 2018-07-04 15:54 DepthBasics-D2DDebugmt.command.1.tlog
文件 682 2018-07-04 15:54 DepthBasics-D2DDebugmt.read.1.tlog
文件 504 2018-07-04 15:54 DepthBasics-D2DDebugmt.write.1.tlog
............此处省略22个文件信息
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
#include “stdafx.h“
#include
#include “DepthBasics.h“
#include “resource.h“
///
/// Entry point for the application
///
/// handle to the application instance
/// always 0
/// command line arguments
/// whether to display minimized maximized or normally
/// status
int APIENTRY wWinMain(HINSTANCE hInstance HINSTANCE hPrevInstance LPWSTR lpCmdLine int nCmdShow)
{
CDepthBasics application;
application.Run(hInstance nCmdShow);
}
///
/// Constructor
///
CDepthBasics::CDepthBasics() :
m_pD2DFactory(NULL)
m_pDrawDepth(NULL)
m_hNextDepthframeEvent(INVALID_HANDLE_VALUE)
m_pDepthStreamHandle(INVALID_HANDLE_VALUE)
m_bNearMode(false)
m_pNuiSensor(NULL)
{
// create heap storage for depth pixel data in RGBX format
m_depthRGBX = new BYTE[cDepthWidth*cDepthHeight*cBytesPerPixel];
}
///
/// Destructor
///
CDepthBasics::~CDepthBasics()
{
if (m_pNuiSensor)
{
m_pNuiSensor->NuiShutdown();
}
if (m_hNextDepthframeEvent != INVALID_HANDLE_VALUE)
{
CloseHandle(m_hNextDepthframeEvent);
}
// clean up Direct2D renderer
delete m_pDrawDepth;
m_pDrawDepth = NULL;
// done with depth pixel data
delete[] m_depthRGBX;
// clean up Direct2D
SafeRelease(m_pD2DFactory);
SafeRelease(m_pNuiSensor);
}
///
/// Creates the main window and begins processing
///
/// handle to the application instance
/// whether to display minimized maximized or normally
int CDepthBasics::Run(HINSTANCE hInstance int nCmdShow)
{
MSG msg = {0};
WNDCLASS wc;
// Dialog custom window class
ZeroMemory(&wc sizeof(wc));
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.cbWndExtra = DLGWINDOWEXTRA;
wc.hInstance = hInstance;
wc.hCursor = LoadCursorW(NULL IDC_ARROW);
wc.hIcon = LoadIconW(hInstance MAKEINTRESOURCE(IDI_APP));
wc.lpfnWndProc = DefDlgProcW;
wc.lpszClassName = L“DepthBasicsAppDlgWndClass“;
if (!RegisterClassW(&wc))
{
return 0;
}
// Create main application window
HWND hWndApp = CreateDialogParamW(
hInstance
MAKEINTRESOURCE(IDD_APP)
NULL
(DLGPROC)CDepthBasics::MessageRouter
reinterpret_cast(this));
// Show window
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-07-04 15:59 DepthBasics-D2D
目录 0 2018-07-04 15:54 DepthBasics-D2DDebug
文件 62118 2018-07-04 15:54 DepthBasics-D2DDebugCL.read.1.tlog
文件 1874 2018-07-04 15:54 DepthBasics-D2DDebugCL.write.1.tlog
文件 484352 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.exe
文件 682 2012-09-26 10:38 DepthBasics-D2DDebugDepthBasics-D2D.exe.em
文件 748 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.exe.em
文件 640 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.exe.intermediate.manifest
文件 1049484 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.ilk
文件 74 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.lastbuildstate
文件 982 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.log
文件 2903040 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.pdb
文件 713 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.vcxprojResolveAssemblyReference.cache
文件 0 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics-D2D.write.1.tlog
文件 220 2012-09-26 10:38 DepthBasics-D2DDebugDepthBasics-D2D_manifest.rc
文件 118234 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics.obj
文件 32668 2018-07-04 15:54 DepthBasics-D2DDebugDepthBasics.res
文件 110608 2018-07-04 15:54 DepthBasics-D2DDebugImageRenderer.obj
文件 2690 2018-07-04 15:54 DepthBasics-D2DDebugcl.command.1.tlog
文件 2 2018-07-04 15:54 DepthBasics-D2DDebugli
文件 2 2018-07-04 15:54 DepthBasics-D2DDebugli
文件 2 2018-07-04 15:54 DepthBasics-D2DDebugli
文件 2 2018-07-04 15:54 DepthBasics-D2DDebugli
文件 2 2018-07-04 15:54 DepthBasics-D2DDebugli
文件 2 2018-07-04 15:54 DepthBasics-D2DDebugli
文件 4638 2018-07-04 15:54 DepthBasics-D2DDebugli
文件 8192 2018-07-04 15:54 DepthBasics-D2DDebugli
文件 2230 2018-07-04 15:54 DepthBasics-D2DDebugli
文件 862 2018-07-04 15:54 DepthBasics-D2DDebugmt.command.1.tlog
文件 682 2018-07-04 15:54 DepthBasics-D2DDebugmt.read.1.tlog
文件 504 2018-07-04 15:54 DepthBasics-D2DDebugmt.write.1.tlog
............此处省略22个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)