All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Classes | Public Member Functions | Private Member Functions | Private Attributes
motld::LKTracker Class Reference

This class contains the "short term tracking" part of the algorithm. More...

#include <LKTracker.h>

List of all members.

Classes

struct  LKPyramid
 Internal representation for an image pyramid. More...
struct  Point2D
 Simple representation for 2D (sub pixel) image points. More...

Public Member Functions

const std::vector< int > * getDebugPoints () const
 A list of points [x0,y0,...,xn,yn] that where considered as inliers in the last iteration.
void initFirstFrame (unsigned char *img)
 Sets up the internal image pyramid.
void initFirstFrame (const Matrix &img)
 Sets up the internal image pyramid.
 LKTracker (int width, int height)
 Constructor.
void processFrame (const Matrix &curImage, std::vector< ObjectBox > &bbox, std::vector< bool > &isDefined)
 Computes the optical flow for each object.
bool processFrame (const Matrix &curImage, ObjectBox &bbox, bool dotracking=true)
 An adapter for the single object case.
 ~LKTracker ()
 Destructor.

Private Member Functions

float median (std::vector< float > *vec, bool compSqrt=false) const
double NCC (const Matrix &aMatrix, const Matrix &bMatrix) const
void pyramidLK (const LKPyramid *prevPyramid, const LKPyramid *curPyramid, const Point2D *prevPts, Point2D *nextPts, char *status, int count) const

Private Attributes

std::vector< int > ivDebugPoints
int ivHeight
int ivIndex
LKPyramidivPrevPyramid
int ivWidth

Detailed Description

This class contains the "short term tracking" part of the algorithm.

Definition at line 47 of file LKTracker.h.


Constructor & Destructor Documentation

motld::LKTracker::LKTracker ( int  width,
int  height 
) [inline]

Constructor.

Definition at line 51 of file LKTracker.h.

Destructor.

Definition at line 54 of file LKTracker.h.


Member Function Documentation

A list of points [x0,y0,...,xn,yn] that where considered as inliers in the last iteration.

Definition at line 68 of file LKTracker.h.

void motld::LKTracker::initFirstFrame ( unsigned char *  img)

Sets up the internal image pyramid.

Definition at line 113 of file LKTracker.h.

Sets up the internal image pyramid.

Definition at line 119 of file LKTracker.h.

float motld::LKTracker::median ( std::vector< float > *  vec,
bool  compSqrt = false 
) const [inline, private]

Computes median of a vector

Note:
changes order of vector-elements!

Definition at line 565 of file LKTracker.h.

double motld::LKTracker::NCC ( const Matrix aMatrix,
const Matrix bMatrix 
) const [inline, private]

Computes normalized cross correlation

defined as:

\[NCC(A,B):=\frac{\sum_{x,y}(A(x,y)-\bar{A})(B(x,y)-\bar{B})} {\sqrt{\sum_{x,y}(A(x,y)-\bar{A})^2\sum_{x,y}(B(x,y)-\bar{B})^2}} \]

Definition at line 583 of file LKTracker.h.

void motld::LKTracker::processFrame ( const Matrix curImage,
std::vector< ObjectBox > &  bbox,
std::vector< bool > &  isDefined 
)

Computes the optical flow for each object.

Parameters:
bboxList of current object boxes, they are replaced with the new boxes
isDefinedMust have the same size as bbox. True for each object that is currently defined and should be tracked. Is set to false if tracking failed.

Definition at line 151 of file LKTracker.h.

bool motld::LKTracker::processFrame ( const Matrix curImage,
ObjectBox bbox,
bool  dotracking = true 
)

An adapter for the single object case.

Definition at line 140 of file LKTracker.h.

void motld::LKTracker::pyramidLK ( const LKPyramid prevPyramid,
const LKPyramid curPyramid,
const Point2D prevPts,
Point2D nextPts,
char *  status,
int  count 
) const [inline, private]

Computes optical flow for each tracking point.

Based on the technical report "Pyramidal Implementation of the Lucas Kanade Feature Tracker: Description of the algorithm" by Jean-Yves Bouguet

Definition at line 436 of file LKTracker.h.


Member Data Documentation

Definition at line 91 of file LKTracker.h.

Definition at line 88 of file LKTracker.h.

Definition at line 90 of file LKTracker.h.

Definition at line 89 of file LKTracker.h.

Definition at line 87 of file LKTracker.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


motld
Author(s): Jost Tobias Springenberg, Jan Wuelfing
autogenerated on Wed Dec 26 2012 16:24:49