VisionWorks Toolkit Reference

December 18, 2015 | 1.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Video Stabilizer Demo App

Video Stabilizer Demo user guide.

Introduction

nvx_demo_video_stabilizer is a demo that demonstrates the image based video stabilization algorithm. It uses the Harris feature detector and sparse pyramidal optical flow method (Lucas-Kanade) to estimate a frame's motion.

The demo uses the following pipeline:

                                (next frame)
                                      |
+-------------------------------------+-------------------------------+-------+
|                                     |                               |       |
|                              [ColorConvert]                         |       |
|                                     |                               |       |
|    +--------------------------------+                               |       |
|    |                                |                               |       |
|    |                        [GaussianPyramid]                       |       |
|    |                                |                               |       |
|    |         (pyr delay -1)   (pyr delay 0)      (pts delay -1)     |       |
|    |               |                |                  |            |       |
|    |               |                |                  +----+       |       |
|    |               |                |                  |    |       |       |
|    |               +----------------+------------------+    |       |       |
|    |                                |                       |       |       |
|    |                         [OpticalFlowPyrLK]             |       |       |
|    |                                |                       |       |       |
|    +-------+------------------------+                       |       |       |
|            |                        |                       |       |       |
|      [HarrisTrack]                  +-------+---------------+       |       |
|            |                                |                       |       |
|      (pts delay 0)                  [FindHomography]                |       |
|                                             |                       |       |
|                                     +-------+-----------------------+       |
|                                     |                                       |
|                            [HomographyFilter]                               |
|                                     |                                       |
|   (...)   (matrix delay -1)   (matrix delay 0)                               |
|    |             |                  |                                       |
|    +-------------+------------------+                                  [ImageCopy]
|                  |                                                          |
|          [MatrixSmoother]                  (RGBX delay -n)   (...)   (RGBX delay 0)
|                  |                               |
+------------------+                               |
                   |                               |
        [TruncateStabTransform]                    |
                   |                               |
                   +---------------+---------------+
                                   |
                           [WarpPerspective]
                                   |
                             (stabilized)

nvx_demo_video_stabilizer is installed in the following directory:

/usr/share/visionworks/sources/demos/video_stabilizer

For the steps to build sample applications, see the Samples and Demos section for your OS.

Executing the Video Stabilizer Demo

./nvx_demo_video_stabilizer [options]

Command Line Options

-s, --source

-n

--crop

-h, --help

Operational Key