
compute the focus of expansion (FOE) from the pixel-based optical flow More...
#include <MBARI/FOEestimator.H>

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 | |
compute the focus of expansion (FOE) from the pixel-based optical flow
Definition at line 48 of file FOEestimator.H.
| FOEestimator::FOEestimator | ( | int | numAvg = 20, |
|
| int | pyramidLevel = 0 | |||
| ) |
constructor
| 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.
| Vector2D FOEestimator::getFOE | ( | ) |
returns the last estimate of the FOA
Definition at line 161 of file FOEestimator.C.
update with a new frame of the movie sequence
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.
update with a new frame of the movie sequence
Definition at line 56 of file FOEestimator.C.
References Rectangle::left(), and Rectangle::top().
1.6.3