
#include <Channels/TcorrChannel.H>
Inheritance diagram for TcorrChannel:


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.
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 | |
|
|
Construct with standard params.
Definition at line 50 of file TcorrChannel.C. |
|
|
Destructor.
Definition at line 58 of file TcorrChannel.C. |
|
|
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(), InputFrame::grayFloat(), Image< T >::initialized(), itsCache, itsFrameLag, SingleChannel::itsLevelSpec, LevelSpec::levMax(), LevelSpec::levMin(), LevelSpec::mapLevel(), ImageCache< T >::push_back(), and ImageCache< T >::setMaxSize(). |
|
|
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(), h, i, itsCache, SingleChannel::itsLevelSpec, itsMap, LERROR, LevelSpec::mapLevel(), rutz::min(), Image< T >::resize(), ImageCache< T >::size(), and w. |
|
|
overload
Reimplemented from SingleChannel. Definition at line 62 of file TcorrChannel.C. References ImageCache< T >::getMaxSize(), itsCache, and ImageCache< T >::size(). |
|
|
cache of the recent inputs
Definition at line 72 of file TcorrChannel.H. Referenced by doInput(), getOutput(), and outputAvailable(). |
|
|
Lag (in frames) to use for correlation.
Definition at line 64 of file TcorrChannel.H. Referenced by doInput(). |
|
|
our temporal correlation map
Definition at line 73 of file TcorrChannel.H. Referenced by getOutput(). |
1.4.4