A variance channel, computes the variance in an image patch. More...
#include <Channels/VarianceChannel.H>
Public Member Functions | |
VarianceChannel (OptionManager &mgr) | |
Construct with standard params. | |
virtual | ~VarianceChannel () |
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 | |
Image< float > | itsMap |
our variance map |
A variance channel, computes the variance in an image patch.
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 48 of file VarianceChannel.H.
VarianceChannel::VarianceChannel | ( | OptionManager & | mgr | ) |
Construct with standard params.
Definition at line 46 of file VarianceChannel.C.
VarianceChannel::~VarianceChannel | ( | ) | [virtual] |
Destructor.
Definition at line 53 of file VarianceChannel.C.
void VarianceChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
special input function
Reimplemented from SingleChannel.
Definition at line 61 of file VarianceChannel.C.
References ASSERT, Image< T >::begin(), Image< T >::beginw(), LevelSpec::delMax(), LevelSpec::delMin(), OModelParam< T >::getVal(), Image< T >::initialized(), itsMap, LevelSpec::levMax(), LevelSpec::levMin(), LevelSpec::mapLevel(), mean(), min(), Image< T >::resize(), and sum().
Image< float > VarianceChannel::getOutput | ( | ) | [protected, virtual] |
special output function
Reimplemented from SingleChannel.
Definition at line 116 of file VarianceChannel.C.
References itsMap.
bool VarianceChannel::outputAvailable | ( | ) | const [virtual] |
overload
Reimplemented from SingleChannel.
Definition at line 57 of file VarianceChannel.C.
References Image< T >::initialized(), and itsMap.
Image<float> VarianceChannel::itsMap [protected] |
our variance map
Definition at line 67 of file VarianceChannel.H.
Referenced by doInput(), getOutput(), and outputAvailable().