A spatial correlation channel. More...
#include <Channels/ScorrChannel.H>
Public Member Functions | |
ScorrChannel (OptionManager &mgr) | |
Construct with standard params. | |
virtual | ~ScorrChannel () |
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 > | itsRadius |
Radius (in saliency map pixels). | |
Image< float > | itsMap |
our temporal correlation map |
A spatial correlation channel.
Spatial correlation is computed at every location between the local patch and other patches at a given radius from the local patch. Radius is given in saliency map pixels. Note that in this channel, high 'salience' means low spatial 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 52 of file ScorrChannel.H.
ScorrChannel::ScorrChannel | ( | OptionManager & | mgr | ) |
Construct with standard params.
Definition at line 51 of file ScorrChannel.C.
ScorrChannel::~ScorrChannel | ( | ) | [virtual] |
Destructor.
Definition at line 59 of file ScorrChannel.C.
void ScorrChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
special input function
Reimplemented from SingleChannel.
Definition at line 72 of file ScorrChannel.C.
References ASSERT, Image< T >::beginw(), Image< T >::clear(), LevelSpec::delMax(), LevelSpec::delMin(), Image< T >::getHeight(), OModelParam< T >::getVal(), Image< T >::getWidth(), Point2D< T >::i, Image< T >::initialized(), itsMap, itsRadius, LevelSpec::levMax(), LevelSpec::levMin(), LevelSpec::mapLevel(), NO_INIT, and Image< T >::resize().
Image< float > ScorrChannel::getOutput | ( | ) | [protected, virtual] |
special output function
Reimplemented from SingleChannel.
Definition at line 141 of file ScorrChannel.C.
References itsMap.
bool ScorrChannel::outputAvailable | ( | ) | const [virtual] |
overload
Reimplemented from SingleChannel.
Definition at line 63 of file ScorrChannel.C.
References Image< T >::initialized(), and itsMap.
Image<float> ScorrChannel::itsMap [protected] |
our temporal correlation map
Definition at line 73 of file ScorrChannel.H.
Referenced by doInput(), getOutput(), and outputAvailable().
OModelParam<int> ScorrChannel::itsRadius [protected] |
Radius (in saliency map pixels).
Definition at line 65 of file ScorrChannel.H.
Referenced by doInput().