Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MultiConvolveChannel Class Reference

#include <Channels/MultiConvolveChannel.H>

Inheritance diagram for MultiConvolveChannel:

Inheritance graph
[legend]
Collaboration diagram for MultiConvolveChannel:

Collaboration graph
[legend]
List of all members.

Detailed Description

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.

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::stringitsFilterFname
 file name for the filters
NModelParam< float > itsLumThresh
 Luminance threshold (see getRGBY()).


Constructor & Destructor Documentation

MultiConvolveChannel::MultiConvolveChannel OptionManager mgr  ) 
 

Construct with standard params.

Definition at line 50 of file MultiConvolveChannel.C.

References ComplexChannel::addSubChan(), ModelComponent::getManager(), n, and sformat().

MultiConvolveChannel::~MultiConvolveChannel  )  [virtual]
 

Destructor.

Definition at line 72 of file MultiConvolveChannel.C.


Member Function Documentation

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, InputFrame::clipMask(), InputFrame::colorFloat(), InputFrame::fromGrayFloat(), getRGBY(), NModelParam< T >::getVal(), Image< T >::initialized(), itsLumThresh, ComplexChannel::numChans(), InputFrame::pyrCache(), ComplexChannel::subChan(), InputFrame::time(), and y.

void MultiConvolveChannel::start1  )  [protected, virtual]
 

read filter definition and instantiate subchannels

Reimplemented from ComplexChannel.

Definition at line 76 of file MultiConvolveChannel.C.

References coeff, CONV_BOUNDARY_ZERO, NModelParam< T >::getVal(), h, i, itsFilterFname, LFATAL, LINFO, n, NO_INIT, Image< T >::setVal(), ComplexChannel::subChan(), and w.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 15:50:39 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4