FOEestimator Class Reference

compute the focus of expansion (FOE) from the pixel-based optical flow More...

#include <MBARI/FOEestimator.H>

Collaboration diagram for FOEestimator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FOEestimator (int numAvg=20, int pyramidLevel=0)
 constructor
Vector2D updateFOE (const Image< byte > &img, const Rectangle region)
 update with a new frame of the movie sequence
Vector2D updateFOE (const Image< byte > &img)
 update with a new frame of the movie sequence
Vector2D getFOE ()
 returns the last estimate of the FOA

Detailed Description

compute the focus of expansion (FOE) from the pixel-based optical flow

Definition at line 48 of file FOEestimator.H.


Constructor & Destructor Documentation

FOEestimator::FOEestimator ( int  numAvg = 20,
int  pyramidLevel = 0 
)

constructor

Parameters:
numAvg the number of frames used for averaging to get a smooth estimate
pyramidLevel the subsampling level at which to compute the optical flow

Definition at line 48 of file FOEestimator.C.


Member Function Documentation

Vector2D FOEestimator::getFOE (  ) 

returns the last estimate of the FOA

Definition at line 161 of file FOEestimator.C.

Vector2D FOEestimator::updateFOE ( const Image< byte > &  img  ) 

update with a new frame of the movie sequence

Returns:
if the cache contains less than three frames, an invalid Vector2D is returned, otherwise the estimated location of the FOE is returned

Definition at line 64 of file FOEestimator.C.

References ImageCache< T >::back(), buildPyrGaussian(), Image< T >::getHeight(), Image< T >::getWidth(), ImageCacheAvg< T >::mean(), ImageCache< T >::push_back(), Vector2D::reset(), ImageCache< T >::size(), and ZEROS.

Vector2D FOEestimator::updateFOE ( const Image< byte > &  img,
const Rectangle  region 
)

update with a new frame of the movie sequence

Returns:
if the cache contains less than three frames, an invalid Vector2D is returned, otherwise the estimated location of the FOE is returned

Definition at line 56 of file FOEestimator.C.

References Rectangle::left(), and Rectangle::top().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:21:43 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3