latest version v1.9 - last update 10 Apr 2010 |
Computes the optical flow between two consecutive images according to Horn-Schunks gradient based method. More...
#include <ltiOpticalFlowHS.h>
Classes | |
class | parameters |
the parameters for the class opticalFlowHS More... | |
Public Member Functions | |
opticalFlowHS () | |
opticalFlowHS (const opticalFlowHS &other) | |
virtual | ~opticalFlowHS () |
virtual const char * | getTypeName () const |
void | apply (channel &ch_t0_u, channel &ch_t1_v) const |
void | apply (const channel &ch_t0, const channel &ch_t1, channel &u, channel &v) const |
opticalFlowHS & | copy (const opticalFlowHS &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Computes the optical flow between two consecutive images according to Horn-Schunks gradient based method.
Optical flow is determined by velocity components u, v, which are searched to complete the optical flow equation:
I(x+u*delta_t, y+v*delta_t, t+delta_t) = I(x,y,t) + e
I=intensity function, t=timeindex, x/y=coordinates, e=error
Theory: "The Computation of Optical Flow", Beauchemin & Barron, ACM Computing Surveys, Vol.27 No. 3
Algorithm: "Computer Vision", Klette, Schluens & koschan, Springer, pp.190
lti::opticalFlowHS::opticalFlowHS | ( | ) |
default constructor
lti::opticalFlowHS::opticalFlowHS | ( | const opticalFlowHS & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::opticalFlowHS::~opticalFlowHS | ( | ) | [virtual] |
destructor
void lti::opticalFlowHS::apply | ( | const channel & | ch_t0, | |
const channel & | ch_t1, | |||
channel & | u, | |||
channel & | v | |||
) | const |
operates on a copy of the given parameters.
virtual functor* lti::opticalFlowHS::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
opticalFlowHS& lti::opticalFlowHS::copy | ( | const opticalFlowHS & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::opticalFlowHS::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::transform.
virtual const char* lti::opticalFlowHS::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("opticalFlowHS")
Reimplemented from lti::transform.