C++ Kinect SDK Usage Tutorial
- Posted: Aug 10, 2011 at 6:00 AM
- 26,742 Views
- 4 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
There's a good number of .Net and C# Kinect SDK examples, but for C++ I'm not seeing as many. So when I saw this, even thought it's not in my native tongue, I knew it as a must share...
This Kinect C++ tutorial, while in Russian, is still weirdly easy to follow. I guess code really is the universal language. ![]()
I've just published a complete tutorial about usage of Kinect SDK in C++ applications (http://habrahabr.ru/blogs/cpp/123588/).
Tutorial is in Russian but source code is self-explanatory and, in case if you want to read the text, you can use Google Translate.
Also the source code (sample application and object-oriented helper library) is available for free download at Google Code (http://code.google.com/p/wxkinecthelper/).
Project Information URL: http://habrahabr.ru/blogs/cpp/123588/ (English Translation)
Project Download URL: http://code.google.com/p/wxkinecthelper/
Project Source URL: http://code.google.com/p/wxkinecthelper/
bool KinectGrabberMSW::ReadSkeletonFrame()
{
do
{
if(m_DeviceIndex < 0 || !m_Instance) break;
if(FAILED(m_Instance->NuiSkeletonGetNextFrame(200, &m_SkeletonFrame))) break;
if(m_Handler)
{
wxCommandEvent e(KINECT_SKELETON_FRAME_RECEIVED, wxID_ANY);
e.SetInt(m_DeviceIndex);
m_Handler->AddPendingEvent(e);
}
return true;
}
while(false);
return false;
}void KinectTestMainFrame::OnSkeletonFrame(wxCommandEvent & event)
{
do
{
if(!m_Grabber) break;
SkeletonPainter painter;
wxBitmap bmp(m_SkeletonImage.GetWidth(), m_SkeletonImage.GetHeight());
wxMemoryDC mdc(bmp);
painter.DrawSkeleton(mdc, m_Grabber->GrabSkeletonFrame());
mdc.SelectObject(wxNullBitmap);
m_SkeletonImage = bmp.ConvertToImage();
m_SkeletonCanvas->Refresh();
}
while(false);
}Contact Information:
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Thank for sharing.
That's what i looking for around a week.
That's great can I do that?
thanks sir to put at web this tutorial
please send me demo of this tutoril
thanks with best wishes
nice
Remove this comment
Remove this thread
close