M-File Help: Tracker View code for Tracker

Tracker

Track points in image sequence

This class assigns each new feature a unique identifier and tracks it from frame to frame until it is lost. A complete history of all tracks is maintained.

Methods

plot Plot all tracks
tracklengths Length of all tracks

Properties

track A vector of structures, one per active track.
history A vector of track history structures with elements id and uv which is the path of the feature.

See also

PointFeature


Tracker.Tracker

Create new Tracker object

T = Tracker(im, C, options) is a new tracker object. im (HxWxS) is an image sequence and C (Sx1) is a cell array of vectors of PointFeature subclass objects. The elements of the cell array are the point features for the corresponding element of the image sequence.

During operation the image sequence is animated and the point features are overlaid along with annotation giving the unique identifier of the track.

Options

'radius', R Search radius for feature in next frame (default 20)
'nslots', N Maximum number of tracks (default 800)
'thresh', T Similarity threshold (default 0.8)
'movie', M Write the frames as images into the folder M as with sequential filenames.

Notes

ffmpeg -r 10 -i %04d.png out.avi

See also

PointFeature


Tracker.char

Convert to string

s = T.char() is a compact string representation of the Tracker parameters and status.


Tracker.display

Display value

T.display() displays a compact human-readable string representation of the Tracker object

Notes

See also

Tracker.char


Tracker.plot

Show feature trajectories

T.plot() overlays the tracks of all features on the current plot.


Tracker.tracklengths

Length of all tracks

T.tracklengths() is a vector containing the length of every track.


 

© 1990-2012 Peter Corke.