This class implements Spatiotemporal Energy motion detections. More...
#include <RCBot/Motion/MotionEnergy.H>
Public Member Functions | |
MotionEnergyPyrBuilder (const PyramidType typ, const float gabor_theta=0.0F, const float intens=10.0F, const int timeDomainSize=5, const float magThreshold=1500) | |
virtual MotionEnergyPyrBuilder < T > * | clone () const |
cloning constructor | |
virtual ImageSet< T > | build (const Image< T > &image, const int firstlevel, const int depth, PyramidCache< T > *cache=0) |
Builds a Motion Energy pyramid based on a image. | |
void | updateMotion (const Image< T > &image, const int depth) |
Image< float > | buildHorizontalMotionLevel (int lev) |
Image< float > | buildVerticalMotionLevel (int lev) |
ImageSet< float > | buildHorizontalMotion () |
ImageSet< float > | buildVerticalMotion () |
virtual void | reset () |
reset the stored queues - overrides PyrBuilder<T>::reset() | |
float | DrawVectors (Image< T > &img, Image< float > &motion) |
This class implements Spatiotemporal Energy motion detections.
The class uses the filter results of pyramids of other types to implement Spatiotemporal Energy motion detection. The motion is extracted by finding edge orientations in the time and space domain. The edge orientation are computed using sobel edge dectors.
Definition at line 59 of file MotionEnergy.H.
ImageSet< T > MotionEnergyPyrBuilder< T >::build | ( | const Image< T > & | image, | |
const int | firstlevel, | |||
const int | depth, | |||
PyramidCache< T > * | cache = 0 | |||
) | [inline, virtual] |
Builds a Motion Energy pyramid based on a image.
Implements PyrBuilder< T >.
Definition at line 69 of file MotionEnergy.C.
MotionEnergyPyrBuilder< T > * MotionEnergyPyrBuilder< T >::clone | ( | ) | const [inline, virtual] |
cloning constructor
default copy constructor and assignment are okay std::vector and std::deque handle the copying of the individual images
Implements PyrBuilder< T >.
Definition at line 399 of file MotionEnergy.C.
float MotionEnergyPyrBuilder< T >::DrawVectors | ( | Image< T > & | img, | |
Image< float > & | motion | |||
) | [inline] |
show the motion image as vectors (use for debuging) return the average motion
Definition at line 351 of file MotionEnergy.C.
References Image< T >::begin(), Image< T >::end(), Image< T >::getHeight(), and Image< T >::getWidth().
void MotionEnergyPyrBuilder< T >::reset | ( | ) | [inline, virtual] |
reset the stored queues - overrides PyrBuilder<T>::reset()
Reimplemented from PyrBuilder< T >.
Definition at line 404 of file MotionEnergy.C.