A dummy channel that simply passes its greyscale input to its output. More...
#include <Channels/DummyChannel.H>
Public Member Functions | |
DummyChannel (OptionManager &mgr) | |
Construct with standard params. | |
virtual | ~DummyChannel () |
Destructor. | |
virtual bool | outputAvailable () const |
overload | |
virtual Dims | getMapDims () const |
overload | |
Protected Member Functions | |
virtual void | doInput (const InputFrame &inframe) |
special input function | |
virtual Image< float > | centerSurround (const uint cntrlev, const uint surrlev) const |
special submap computation function | |
Protected Attributes | |
OModelParam< float > | itsFactor |
output = input * factor if non-zero | |
Image< float > | itsMap |
our output map |
A dummy channel that simply passes its greyscale input to its output.
USE WITH CAUTION: only tested for --levelspec=0-0,0-0,0
Definition at line 46 of file DummyChannel.H.
DummyChannel::DummyChannel | ( | OptionManager & | mgr | ) |
Construct with standard params.
Definition at line 49 of file DummyChannel.C.
DummyChannel::~DummyChannel | ( | ) | [virtual] |
Destructor.
Definition at line 57 of file DummyChannel.C.
Image< float > DummyChannel::centerSurround | ( | const uint | cntrlev, | |
const uint | surrlev | |||
) | const [protected, virtual] |
special submap computation function
Reimplemented from SingleChannel.
Definition at line 77 of file DummyChannel.C.
References ASSERT, LevelSpec::csOK(), OModelParam< T >::getVal(), and itsMap.
void DummyChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
special input function
Reimplemented from SingleChannel.
Definition at line 69 of file DummyChannel.C.
References ASSERT, OModelParam< T >::getVal(), Image< T >::initialized(), itsFactor, and itsMap.
Dims DummyChannel::getMapDims | ( | ) | const [virtual] |
overload
Reimplemented from SingleChannel.
Definition at line 65 of file DummyChannel.C.
References Image< T >::getDims(), and itsMap.
bool DummyChannel::outputAvailable | ( | ) | const [virtual] |
overload
Reimplemented from SingleChannel.
Definition at line 61 of file DummyChannel.C.
References Image< T >::initialized(), and itsMap.
OModelParam<float> DummyChannel::itsFactor [protected] |
output = input * factor if non-zero
Definition at line 62 of file DummyChannel.H.
Referenced by doInput().
Image<float> DummyChannel::itsMap [protected] |
our output map
Definition at line 71 of file DummyChannel.H.
Referenced by centerSurround(), doInput(), getMapDims(), and outputAvailable().