w2img::MultipleHypothesesTracker Class Reference

List of all members.

Detailed Description

Uses the Hungarian method and Murty's K-best assignment method to implement multiple-hypotheses-tracking.

Author:
Lakshman
Version:
Id
w2img_MultipleHypothesesTracker.h,v 1.6 2011/03/29 22:13:50 lakshman Exp
See also:
HungarianMatch


Public Member Functions

void update (const std::vector< Node > &nodes, std::ostream *rfile=0)
int nframes () const
 Number of frames being held right now.
void clear ()
 Clear all history.
bool isValid () const
bool isFirstHypothesisFinal () const
bool getFinalNodes (std::vector< Node > *addtome) const
 All the validated nodes at the first frame.
const std::vector< Hypothesis > & getHypothesis () const
 The best hypothesis of node assignments.

Static Public Member Functions

static void setSettings (const std::string &settings)
 Setting is of the form: lookahead:maxcoasted:maxcost:halfage:numhypotheses e.g: 3:2:100:5:5 (these are the defaults) where: lookahead -- number of frames to look ahead maxcoasted -- number of frames a node can coast before it is deleted maxcost -- maximum cost function.

Classes

struct  Hypothesis
struct  Node


Member Function Documentation

void w2img::MultipleHypothesesTracker::clear (  ) 

Clear all history.

bool w2img::MultipleHypothesesTracker::getFinalNodes ( std::vector< Node > *  addtome  )  const

All the validated nodes at the first frame.

Returns:
true if the list was populated, false if not.

const std::vector<Hypothesis>& w2img::MultipleHypothesesTracker::getHypothesis (  )  const [inline]

The best hypothesis of node assignments.

The last element is from the newly added frame to the previous frame. Check if the first hypothesis is valid, and use the first hypothesis in this list to get QC'ed set of nodes.

bool w2img::MultipleHypothesesTracker::isFirstHypothesisFinal (  )  const

bool w2img::MultipleHypothesesTracker::isValid (  )  const [inline]

int w2img::MultipleHypothesesTracker::nframes (  )  const [inline]

Number of frames being held right now.

This needs to be at least two in order to get valid results.

static void w2img::MultipleHypothesesTracker::setSettings ( const std::string &  settings  )  [static]

Setting is of the form: lookahead:maxcoasted:maxcost:halfage:numhypotheses e.g: 3:2:100:5:5 (these are the defaults) where: lookahead -- number of frames to look ahead maxcoasted -- number of frames a node can coast before it is deleted maxcost -- maximum cost function.

The cost function is basically the Euclidean distance squared, so set this to be 400 if you want to give a 20-pixel window. halfage -- the cost function based on just distance is multiplied by (1 - age/(2*halfage)); set this halfage in number of frames numhypotheses -- how many hypotheses should try?

void w2img::MultipleHypothesesTracker::update ( const std::vector< Node > &  nodes,
std::ostream *  rfile = 0 
)


Generated on Fri May 4 13:40:24 2012 for WDSS-IIw2algs by  doxygen 1.4.7