A generic convolution channel using color filters. More...
#include <Channels/RGBConvolveChannel.H>
Public Member Functions | |
RGBConvolveChannel (OptionManager &mgr) | |
Construct with standard params. Will need to set the 3 filters. | |
void | setFilters (const Image< float > &rfilter, const Image< float > &gfilter, const Image< float > &bfilter, ConvolutionBoundaryStrategy boundary) |
Set the 3 filters to use for convolutions. | |
virtual | ~RGBConvolveChannel () |
Destructor. | |
Protected Member Functions | |
virtual void | doInput (const InputFrame &inframe) |
SingleChannel requires only luminance input. | |
virtual ImageSet< float > | computePyramid (const Image< PixRGB< float > > &img, const rutz::shared_ptr< PyramidCache< float > > &cache) |
compute from a color image |
A generic convolution channel using color filters.
Definition at line 46 of file RGBConvolveChannel.H.
RGBConvolveChannel::RGBConvolveChannel | ( | OptionManager & | mgr | ) |
Construct with standard params. Will need to set the 3 filters.
Definition at line 47 of file RGBConvolveChannel.C.
References NModelParam< T >::setVal().
RGBConvolveChannel::~RGBConvolveChannel | ( | ) | [virtual] |
Destructor.
Definition at line 65 of file RGBConvolveChannel.C.
ImageSet< float > RGBConvolveChannel::computePyramid | ( | const Image< PixRGB< float > > & | img, | |
const rutz::shared_ptr< PyramidCache< float > > & | cache | |||
) | [protected, virtual] |
compute from a color image
Definition at line 77 of file RGBConvolveChannel.C.
References OModelParam< T >::getVal(), SingleChannel::itsSaveRawMaps, LevelSpec::levMin(), and LevelSpec::maxDepth().
Referenced by doInput().
void RGBConvolveChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
SingleChannel requires only luminance input.
Reimplemented from SingleChannel.
Definition at line 67 of file RGBConvolveChannel.C.
References ASSERT, computePyramid(), Image< T >::initialized(), SingleChannel::setClipPyramid(), and SingleChannel::storePyramid().
void RGBConvolveChannel::setFilters | ( | const Image< float > & | rfilter, | |
const Image< float > & | gfilter, | |||
const Image< float > & | bfilter, | |||
ConvolutionBoundaryStrategy | boundary | |||
) |
Set the 3 filters to use for convolutions.
Definition at line 55 of file RGBConvolveChannel.C.
References rutz::make_shared(), and SingleChannel::setPyramid().