微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 硬件工程师文库 > 基于Dragonboard 410c的kinect应用系列之四——获取人体骨骼图

基于Dragonboard 410c的kinect应用系列之四——获取人体骨骼图

时间:02-21 来源:互联网 点击:
="line" id="LC512"> return hr;

="line" id="LC513"> }

="line" id="LC514">  

="line" id="LC515"> //light green

="line" id="LC516"> m_pRenderTarget->CreateSolidColorBrush(D2D1::ColorF(0.27f, 0.75f, 0.27f), &m_pBrushJointTracked);

="line" id="LC517">  

="line" id="LC518"> m_pRenderTarget->CreateSolidColorBrush(D2D1::ColorF(D2D1::ColorF::Yellow, 1.0f), &m_pBrushJointInferred);

="line" id="LC519"> m_pRenderTarget->CreateSolidColorBrush(D2D1::ColorF(D2D1::ColorF::Green, 1.0f), &m_pBrushBoneTracked);

="line" id="LC520"> m_pRenderTarget->CreateSolidColorBrush(D2D1::ColorF(D2D1::ColorF::Gray, 1.0f), &m_pBrushBoneInferred);

="line" id="LC521"> }

="line" id="LC522">  

="line" id="LC523"> return hr;

="line" id="LC524"> }

="line" id="LC525">  

="line" id="LC526"> /// <summary>

="line" id="LC527"> /// Dispose Direct2d resources

="line" id="LC528"> /// </summary>

="line" id="LC529"> void CSkeletonBasics::DiscardDirect2DResources( )

="line" id="LC530"> {

="line" id="LC531"> SafeRelease(m_pRenderTarget);

="line" id="LC532">  

="line" id="LC533"> SafeRelease(m_pBrushJointTracked);

="line" id="LC534"> SafeRelease(m_pBrushJointInferred);

="line" id="LC535"> SafeRelease(m_pBrushBoneTracked);

="line" id="LC536"> SafeRelease(m_pBrushBoneInferred);

="line" id="LC537"> }

="line">  

="line"> ="line" id="LC539"> /// <summary>

="line" id="LC540"> /// Set the status bar message

="line" id="LC541"> /// </summary>

="line" id="LC542"> /// <param name="szMessage">message to display</param>

="line" id="LC543"> void CSkeletonBasics::SetStatusMessage(WCHAR * szMessage)

="line" id="LC544"> {

="line" id="LC545"> SendDlgItemMessageW(m_hWnd, IDC_STATUS, WM_SETTEXT, 0, (LPARAM)szMessage);

="line" id="LC546"> }

二、实测效果图:(这是有名的投降姿势矫正,哈哈~!)

三、例程工程分享:

http://pan.baidu.com/s/1c1S4Pkk

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top