
A temporal flicker channel. More...
#include <Channels/FlickerChannel.H>


Public Member Functions | |
| FlickerChannel (OptionManager &mgr, const std::string &descrNam="Flicker", const std::string &tagNam="flicker") | |
| Construct with standard specs. | |
| virtual | ~FlickerChannel () |
| Destructor. | |
| virtual void | reset1 () |
| Reset FlickerChannel. | |
Protected Member Functions | |
| virtual void | doInput (const InputFrame &inframe) |
| FlickerChannel requires only luminance input. | |
Protected Attributes | |
| NModelParam< SimTime > | itsTimeConst |
A temporal flicker channel.
This channel just keeps a memory trace of the previous frame and then does a basic center-surround processing on the difference between current and memorized input. The time constant determines how the memorized input should be updated when a new input arrives.
Definition at line 51 of file FlickerChannel.H.
| FlickerChannel::FlickerChannel | ( | OptionManager & | mgr, | |
| const std::string & | descrNam = "Flicker", |
|||
| const std::string & | tagNam = "flicker" | |||
| ) |
Construct with standard specs.
Definition at line 51 of file FlickerChannel.C.
References NModelParam< T >::setVal().
| FlickerChannel::~FlickerChannel | ( | ) | [virtual] |
Destructor.
Definition at line 63 of file FlickerChannel.C.
| void FlickerChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
FlickerChannel requires only luminance input.
Reimplemented from SingleChannel.
Definition at line 69 of file FlickerChannel.C.
References absDiff(), ASSERT, NModelParam< T >::getVal(), Image< T >::initialized(), itsTimeConst, and SimTime::secs().
| void FlickerChannel::reset1 | ( | ) | [virtual] |
Reset FlickerChannel.
See the base function in ModelComponent.H for info.
Reimplemented from SingleChannel.
Definition at line 109 of file FlickerChannel.C.
References Image< T >::freeMem().
NModelParam<SimTime> FlickerChannel::itsTimeConst [protected] |
Time constant of the channel, in seconds. This is used to determine how to update our memory of the previous frame as a new frame arrives. If the previous frame is more than a time constant older than the new one, it will be replaced by the new one for the next step of processing; otherwise a mix between both will be used, depending on the difference between old and new times.
Definition at line 76 of file FlickerChannel.H.
Referenced by doInput().
1.6.3