Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenNI Cookbook

You're reading from   OpenNI Cookbook Learn how to write NIUI-based applications and motion-controlled games

Arrow left icon
Product type Paperback
Published in Jul 2013
Publisher Packt
ISBN-13 9781849518468
Length 324 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Soroush Falahati Soroush Falahati
Author Profile Icon Soroush Falahati
Soroush Falahati
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

OpenNI Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started FREE CHAPTER 2. OpenNI and C++ 3. Using Low-level Data 4. More about Low-level Outputs 5. NiTE and User Tracking 6. NiTE and Hand Tracking 7. NiTE and Skeleton Tracking Index

Accessing video streams (depth/IR/RGB) and configuring them


In OpenNI 2 there is only one class that is responsible for giving us access to the output of all video-based sensors (depth/IR/RGB) that have made our work very simple compared to the OpenNI 1.x era, where we needed to use three different classes to access sensors. In this recipe we will show you how to access the depth sensor and initialize it. For accessing the IR sensor and RGB sensor we need to follow the same procedure that we will discuss more in the How It Works… section of this recipe. We will show you how to select an output video mode for a sensor too. Also we will show you how to ask a device to see if an output is supported or not.

We will not cover other configurable properties of the openni::VideoStream class including cropping and mirroring in this recipe; read Chapter 4, More about Low-level Outputs about this topic.

Getting ready

Create a project in Visual Studio 2010 and prepare it for working with OpenNI using the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image