latest version v1.9 - last update 10 Apr 2010 |
This functor implements temporal templates, as described by James Davis and Aaron Bobick in "The Representation and Recognition of Action Using Temporal Templates", MIT Media Lab, Tech. More...
#include <ltiTemporalTemplate.h>
Classes | |
class | parameters |
the parameters for the class temporalTemplate More... | |
Public Member Functions | |
temporalTemplate () | |
temporalTemplate (const temporalTemplate &other) | |
virtual | ~temporalTemplate () |
virtual const char * | getTypeName () const |
void | reset () |
bool | apply (channel &srcdest) |
bool | apply (const image &src, channel &dest) |
bool | apply (const channel &src, channel &dest) |
bool | apply (const channel8 &src, channel &dest) |
temporalTemplate & | copy (const temporalTemplate &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Protected Member Functions | |
float | difference (channel &newChannel, channel &diff) |
float | difference (channel8 &newChannel, channel &diff) |
float | difference (image &newImage, channel &diff) |
void | accumulate (channel &diff, const float &threshold) |
Protected Attributes | |
channel | lastChannel |
channel8 | lastChannel8 |
image | lastImage |
channel | mhi |
This functor implements temporal templates, as described by James Davis and Aaron Bobick in "The Representation and Recognition of Action Using Temporal Templates", MIT Media Lab, Tech.
Report 402, IEEE Conference on Computer Vision and Pattern Recognition (CVPR'97) The apply()-methods return the calculated Motion-History-Image coded in a channel, where the value 1.0 means there was motion between the last two images.
lti::temporalTemplate::temporalTemplate | ( | ) |
default constructor
lti::temporalTemplate::temporalTemplate | ( | const temporalTemplate & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::temporalTemplate::~temporalTemplate | ( | ) | [virtual] |
destructor
void lti::temporalTemplate::accumulate | ( | channel & | diff, | |
const float & | threshold | |||
) | [protected] |
accumulate the given difference image in the MHI.
Diff will contain the same value as mhi after calling this member.
operates on a copy of the given parameters.
operates on a copy of the given parameters.
operates on a copy of the given parameters.
bool lti::temporalTemplate::apply | ( | channel & | srcdest | ) |
operates on the given parameter.
srcdest | channel with the source data. The result will be left here too. |
virtual functor* lti::temporalTemplate::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
temporalTemplate& lti::temporalTemplate::copy | ( | const temporalTemplate & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::temporalTemplate::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::transform.
virtual const char* lti::temporalTemplate::getTypeName | ( | ) | const [virtual] |
returns the name of this type ( "temporalTemplate" )
Reimplemented from lti::transform.
void lti::temporalTemplate::reset | ( | ) |
reset the internal accumulators, so that the next apply will be considered as the first image to detect motion
channel lti::temporalTemplate::lastChannel [protected] |
the last channel, required to calculate D(x,y,t)
channel8 lti::temporalTemplate::lastChannel8 [protected] |
the last channel8, required to calculate D(x,y,t)
image lti::temporalTemplate::lastImage [protected] |
the last image, required to calculate D(x,y,t)
channel lti::temporalTemplate::mhi [protected] |
The Motion History Image.