|
|
VisionWorks Toolkit ReferenceDecember 18, 2015 | 1.2 Release |
Video Stabilizer Demo user guide.
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.
./nvx_demo_video_stabilizer [options]
./nvx_demo_video_stabilizer --source=/path/to/video.avi for video./nvx_demo_video_stabilizer --source=/path/to/image_%04d_sequence for image sequence./nvx_demo_video_stabilizer --source=device://camera0 for the first camera./nvx_demo_video_stabilizer --source=device://camera1 for the second camera../nvx_demo_video_stabilizer --source=video.avi -n6./nvx_demo_video_stabilizer --source=video.avi --crop=0.1ESC to close the demo.Space to pause/resume the demo.