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

VarianceChannel Class Reference

#include <Channels/VarianceChannel.H>

Inheritance diagram for VarianceChannel:

Inheritance graph
[legend]
Collaboration diagram for VarianceChannel:

Collaboration graph
[legend]
List of all members.

Detailed Description

A variance channel, computes the variance in an image patch.

CAUTION: this channel will throw a fatal exception if your LevelSpec contains more than one level or if that level is different from the maplevel or if the deltas are non-zero.

Definition at line 48 of file VarianceChannel.H.

Public Member Functions

 VarianceChannel (OptionManager &mgr)
 Construct with standard params.
virtual ~VarianceChannel ()
 Destructor.
virtual bool outputAvailable () const
 overload

Protected Member Functions

virtual void doInput (const InputFrame &inframe)
 special input function
virtual Image< float > getOutput ()
 special output function

Protected Attributes

Image< float > itsMap
 our variance map


Constructor & Destructor Documentation

VarianceChannel::VarianceChannel OptionManager mgr  ) 
 

Construct with standard params.

Definition at line 46 of file VarianceChannel.C.

VarianceChannel::~VarianceChannel  )  [virtual]
 

Destructor.

Definition at line 53 of file VarianceChannel.C.


Member Function Documentation

void VarianceChannel::doInput const InputFrame inframe  )  [protected, virtual]
 

special input function

Reimplemented from SingleChannel.

Definition at line 61 of file VarianceChannel.C.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), LevelSpec::delMax(), LevelSpec::delMin(), InputFrame::getHeight(), OModelParam< T >::getVal(), InputFrame::getWidth(), InputFrame::grayFloat(), h, i, Image< T >::initialized(), SingleChannel::itsLevelSpec, itsMap, LevelSpec::levMax(), LevelSpec::levMin(), LevelSpec::mapLevel(), mean(), rutz::min(), Image< T >::resize(), src, sum, and w.

Image< float > VarianceChannel::getOutput  )  [protected, virtual]
 

special output function

Reimplemented from SingleChannel.

Definition at line 116 of file VarianceChannel.C.

References itsMap.

bool VarianceChannel::outputAvailable  )  const [virtual]
 

overload

Reimplemented from SingleChannel.

Definition at line 57 of file VarianceChannel.C.

References Image< T >::initialized(), and itsMap.


Member Data Documentation

Image<float> VarianceChannel::itsMap [protected]
 

our variance map

Definition at line 67 of file VarianceChannel.H.

Referenced by doInput(), getOutput(), and outputAvailable().


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