A temporal correlation channel. More...
#include <Channels/TcorrChannel.H>
Public Member Functions | |
TcorrChannel (OptionManager &mgr) | |
Construct with standard params. | |
virtual | ~TcorrChannel () |
Destructor. | |
virtual bool | outputAvailable () const |
overload | |
Protected Member Functions | |
virtual void | doInput (const InputFrame &inframe) |
special input function | |
virtual Image< float > | getOutput () |
special output function | |
Protected Attributes | |
OModelParam< int > | itsFrameLag |
Lag (in frames) to use for correlation. | |
ImageCache< float > | itsCache |
cache of the recent inputs | |
Image< float > | itsMap |
our temporal correlation map |
A temporal correlation channel.
Note that in this channel, high 'salience' means low temporal correlation, i.e., lots of change. CAUTION: this channel will throw a fatal exception if your LevelSpec contains more than one level or if that level is different from the maplevel or if the deltas are non-zero.
Definition at line 51 of file TcorrChannel.H.
TcorrChannel::TcorrChannel | ( | OptionManager & | mgr | ) |
Construct with standard params.
Definition at line 50 of file TcorrChannel.C.
TcorrChannel::~TcorrChannel | ( | ) | [virtual] |
Destructor.
Definition at line 58 of file TcorrChannel.C.
void TcorrChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
special input function
Reimplemented from SingleChannel.
Definition at line 66 of file TcorrChannel.C.
References ASSERT, LevelSpec::delMax(), LevelSpec::delMin(), ImageCache< T >::getMaxSize(), OModelParam< T >::getVal(), Image< T >::initialized(), itsCache, itsFrameLag, LevelSpec::levMax(), LevelSpec::levMin(), LevelSpec::mapLevel(), ImageCache< T >::push_back(), and ImageCache< T >::setMaxSize().
Image< float > TcorrChannel::getOutput | ( | ) | [protected, virtual] |
special output function
Reimplemented from SingleChannel.
Definition at line 84 of file TcorrChannel.C.
References ImageCache< T >::back(), Image< T >::beginw(), corrpatch(), ImageCache< T >::front(), Image< T >::getHeight(), ImageCache< T >::getMaxSize(), OModelParam< T >::getVal(), Image< T >::getWidth(), itsCache, itsMap, LevelSpec::mapLevel(), min(), Image< T >::resize(), and ImageCache< T >::size().
bool TcorrChannel::outputAvailable | ( | ) | const [virtual] |
overload
Reimplemented from SingleChannel.
Definition at line 62 of file TcorrChannel.C.
References ImageCache< T >::getMaxSize(), itsCache, and ImageCache< T >::size().
ImageCache<float> TcorrChannel::itsCache [protected] |
cache of the recent inputs
Definition at line 72 of file TcorrChannel.H.
Referenced by doInput(), getOutput(), and outputAvailable().
OModelParam<int> TcorrChannel::itsFrameLag [protected] |
Lag (in frames) to use for correlation.
Definition at line 64 of file TcorrChannel.H.
Referenced by doInput().
Image<float> TcorrChannel::itsMap [protected] |
our temporal correlation map
Definition at line 73 of file TcorrChannel.H.
Referenced by getOutput().