O'Reilly logo

OpenNI Cookbook by Soroush Falahati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cropping and mirroring frames right from the buffer

In this recipe, we are going to show you how we can use two features of openni::VideoStream that give us the ability to mirror or crop frames right from the device itself. This ability is available for all three outputs based on openni::VideoStream.

For saving more space, we decided to use the code from the Reading and showing a frame from the image sensor (color/IR) recipe of Chapter 3, Using Low-level Data, as a template and show you only the changes.

Getting ready

Create a project in Visual Studio 2010 and prepare it for working with OpenNI using the Creating a project in Visual Studio 2010 recipe of Chapter 2, OpenNI and C++. Then, configure Visual Studio 2010 to use OpenGL with the Configuring ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required