A generic multi-convolution channel. More...
#include <Channels/MultiConvolveChannel.H>
Public Member Functions | |
MultiConvolveChannel (OptionManager &mgr) | |
Construct with standard params. | |
virtual | ~MultiConvolveChannel () |
Destructor. | |
Protected Member Functions | |
void | start1 () |
read filter definition and instantiate subchannels | |
virtual void | doInput (const InputFrame &inframe) |
MultiConvolveChannel requires only color input. | |
Protected Attributes | |
NModelParam< std::string > | itsFilterFname |
file name for the filters | |
NModelParam< float > | itsLumThresh |
Luminance threshold (see getRGBY()). |
A generic multi-convolution channel.
This channel reads a filter definition file from disk (text format) and builds a number of ConvolveChannel subchannels. In the current implementation, only 4 subchannels are supported, and their inputs will be the red, green, blue and yellow color components of the image as given by getRGBY(). Each subchannel will convolve its input using the convolution filter definition given in the text file.
Definition at line 52 of file MultiConvolveChannel.H.
MultiConvolveChannel::MultiConvolveChannel | ( | OptionManager & | mgr | ) |
Construct with standard params.
Definition at line 50 of file MultiConvolveChannel.C.
References ComplexChannel::addSubChan(), ModelComponent::getManager(), and sformat().
MultiConvolveChannel::~MultiConvolveChannel | ( | ) | [virtual] |
Destructor.
Definition at line 72 of file MultiConvolveChannel.C.
void MultiConvolveChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
MultiConvolveChannel requires only color input.
Implements ChannelBase.
Definition at line 109 of file MultiConvolveChannel.C.
References ASSERT, getRGBY(), NModelParam< T >::getVal(), Image< T >::initialized(), itsLumThresh, ComplexChannel::numChans(), and ComplexChannel::subChan().
void MultiConvolveChannel::start1 | ( | ) | [protected, virtual] |
read filter definition and instantiate subchannels
Reimplemented from ComplexChannel.
Definition at line 76 of file MultiConvolveChannel.C.
References CONV_BOUNDARY_ZERO, NModelParam< T >::getVal(), itsFilterFname, NO_INIT, Image< T >::setVal(), and ComplexChannel::subChan().
NModelParam<std::string> MultiConvolveChannel::itsFilterFname [protected] |
file name for the filters
Definition at line 62 of file MultiConvolveChannel.H.
Referenced by start1().
NModelParam<float> MultiConvolveChannel::itsLumThresh [protected] |
Luminance threshold (see getRGBY()).
Definition at line 63 of file MultiConvolveChannel.H.
Referenced by doInput().