This class implements Spatiotemporal Energy motion detections. More...
#include <Robots/Beobot2/Navigation/FOE_Navigation/SpatioTemporalEnergy.H>
Public Member Functions | |
SpatioTemporalEnergyPyrBuilder (const PyramidType typ, const float gabor_theta=0.0F, const float speed=1.0F, const uint depth=2, const int timeDomainSize=5) | |
virtual SpatioTemporalEnergyPyrBuilder < T > * | clone () const |
cloning constructor | |
virtual ImageSet< T > | build (const Image< T > &image, const int firstlevel=0, const int depth=0, PyramidCache< T > *cache=0) |
Builds a Motion Energy pyramid based on a image. | |
Image< float > | buildMotion (int scale) |
ImageSet< float > | getOptimalShift () |
virtual void | reset () |
reset the stored queues - overrides PyrBuilder<T>::reset() | |
float | DrawVectors (Image< T > &img, Image< float > &motion) |
ImageSet< float > | getSpatioTemporalEnergy () |
get the spatiotemporal energy map |
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 60 of file SpatioTemporalEnergy.H.
ImageSet< T > SpatioTemporalEnergyPyrBuilder< T >::build | ( | const Image< T > & | image, | |
const int | firstlevel = 0 , |
|||
const int | depth = 0 , |
|||
PyramidCache< T > * | cache = 0 | |||
) | [inline, virtual] |
Builds a Motion Energy pyramid based on a image.
Implements PyrBuilder< T >.
Definition at line 411 of file SpatioTemporalEnergy.C.
References buildPyrGabor().
SpatioTemporalEnergyPyrBuilder< T > * SpatioTemporalEnergyPyrBuilder< 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 911 of file SpatioTemporalEnergy.C.
float SpatioTemporalEnergyPyrBuilder< 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 863 of file SpatioTemporalEnergy.C.
References Image< T >::begin(), Image< T >::end(), Image< T >::getHeight(), and Image< T >::getWidth().
ImageSet< float > SpatioTemporalEnergyPyrBuilder< T >::getSpatioTemporalEnergy | ( | ) | [inline] |
get the spatiotemporal energy map
Definition at line 403 of file SpatioTemporalEnergy.C.
void SpatioTemporalEnergyPyrBuilder< T >::reset | ( | ) | [inline, virtual] |
reset the stored queues - overrides PyrBuilder<T>::reset()
Reimplemented from PyrBuilder< T >.
Definition at line 916 of file SpatioTemporalEnergy.C.