|
|
VisionWorks Toolkit ReferenceApril 8, 2016 | 1.4 Release |
Feature Tracker Demo user guide.
nvx_demo_feature_tracker is a simple local feature tracking demo that uses the Harris or FAST feature detector to get the initial list of features and tracks them using the sparse pyramidal optical flow method (Lucas-Kanade).
In the first frame, Gaussian pyramid is created and initial points are detected so that the features can be found quickly at low resolution and can also be located more accurately as you go down the pyramid.
The initial points are detected using Harris Corner detector. The NVIDIA extended Harris and FAST Corner functions divide the image into cells of the same size and look for corners independently in each cell. This way, corners are uniformly detected across the image. These corners are the keypoints that are tracked in the next frames.
(frame)
|
[ColorConvert]
|
+-------------------+-------------------+
| |
[GaussianPyramid] [CornerTrack]
| |
(initial pyramid) (initial points)
In subsequent frames, points are tracked with the Lucas-Kanade method between two pyramid images. Then, corner detection is performed to restore lost points.
(frame)
|
[ColorConvert]
|
[ChannelExtract]
|
[GaussianPyramid]
|
(previous pyramid) (current pyramid) (points to track in the previous frame)
| | |
+------------------------------+--------------------------------------+
|
[OpticalFlowPyrLK]
|
(tracked points)
|
[CornerTrack]
|
(points to track in the next frame)
nvx_demo_feature_tracker is installed in the following directory:
/usr/share/visionworks/sources/demos/feature_tracker
For the steps to build sample applications, see the Sample and Demos User Guides section for your OS.
./nvx_demo_feature_tracker [options]
This topic provides a list of supported options and the values they consume.
--source=/path/to/video.avi for video--source=/path/to/image.png for image--source=/path/to/image_%04d_sequence.png for image sequence--source="device:///v4l2?index=0" for the first V4L2 camera--source="device:///v4l2?index=1" for the second V4L2 camera.--source="device:///nvcamera?index=0" for the GStreamer NVIDIA camera (Jetson TX1 only).--source="device:///nvmedia?config=dvp-ov10635-yuv422-ab-e2379&number=4" for the GStreamer NVIDIA camera (Vibrante for Linux only).sudo.Description: Specifies the path to the configuration file. The file contains the parameters of the algorithm stored in key=value format.
This file contains the following parameters:
Usage:
./nvx_demo_feature_tracker --source=/path/to/video.avi --config=/path/to/config_file.ini
Space to pause/resume the demo.ESC to close the demo.