An entropy channel. More...
#include <Channels/EntropyChannel.H>
Public Member Functions | |
EntropyChannel (OptionManager &mgr) | |
Construct with standard params. | |
virtual | ~EntropyChannel () |
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 | |
NModelParam< int > | itsQstep |
greyscale quantization step | |
Image< float > | itsMap |
our entropy map |
An entropy channel.
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 EntropyChannel.H.
EntropyChannel::EntropyChannel | ( | OptionManager & | mgr | ) |
Construct with standard params.
Definition at line 48 of file EntropyChannel.C.
EntropyChannel::~EntropyChannel | ( | ) | [virtual] |
Destructor.
Definition at line 56 of file EntropyChannel.C.
void EntropyChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
special input function
Reimplemented from SingleChannel.
Definition at line 64 of file EntropyChannel.C.
References ASSERT, Image< T >::begin(), Image< T >::beginw(), LevelSpec::delMax(), LevelSpec::delMin(), OModelParam< T >::getVal(), NModelParam< T >::getVal(), highThresh(), Image< T >::initialized(), itsMap, itsQstep, LevelSpec::levMax(), LevelSpec::levMin(), LevelSpec::mapLevel(), min(), and Image< T >::resize().
Image< float > EntropyChannel::getOutput | ( | ) | [protected, virtual] |
special output function
Reimplemented from SingleChannel.
Definition at line 124 of file EntropyChannel.C.
References itsMap.
bool EntropyChannel::outputAvailable | ( | ) | const [virtual] |
overload
Reimplemented from SingleChannel.
Definition at line 60 of file EntropyChannel.C.
References Image< T >::initialized(), and itsMap.
Image<float> EntropyChannel::itsMap [protected] |
our entropy map
Definition at line 69 of file EntropyChannel.H.
Referenced by doInput(), getOutput(), and outputAvailable().
NModelParam<int> EntropyChannel::itsQstep [protected] |
greyscale quantization step
Definition at line 61 of file EntropyChannel.H.
Referenced by doInput().