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

MichelsonChannel Class Reference

#include <Channels/MichelsonChannel.H>

Inheritance diagram for MichelsonChannel:

Inheritance graph
[legend]
Collaboration diagram for MichelsonChannel:

Collaboration graph
[legend]
List of all members.

Detailed Description

A Michelson contrast channel, computes Michelson contrast 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. Michelson contrast in every map pixel is computed as abs( (La-Li) / (La+Li) ) where La is the local patch luminance and Li the average image luminance.

Definition at line 50 of file MichelsonChannel.H.

Public Member Functions

 MichelsonChannel (OptionManager &mgr)
 Construct with standard params.
virtual ~MichelsonChannel ()
 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 michelson contrast map


Constructor & Destructor Documentation

MichelsonChannel::MichelsonChannel OptionManager mgr  ) 
 

Construct with standard params.

Definition at line 45 of file MichelsonChannel.C.

MichelsonChannel::~MichelsonChannel  )  [virtual]
 

Destructor.

Definition at line 52 of file MichelsonChannel.C.


Member Function Documentation

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

special input function

Reimplemented from SingleChannel.

Definition at line 60 of file MichelsonChannel.C.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), LevelSpec::delMax(), LevelSpec::delMin(), SingleChannel::doInput(), Image< T >::end(), Image< T >::getDims(), SingleChannel::getImage(), getMinMaxAvg(), OModelParam< T >::getVal(), InputFrame::grayFloat(), Image< T >::initialized(), SingleChannel::itsLevelSpec, itsMap, LevelSpec::levMax(), LevelSpec::levMin(), lum, LevelSpec::mapLevel(), Image< T >::resize(), src, and ModelComponent::stop().

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

special output function

Reimplemented from SingleChannel.

Definition at line 87 of file MichelsonChannel.C.

References itsMap.

bool MichelsonChannel::outputAvailable  )  const [virtual]
 

overload

Reimplemented from SingleChannel.

Definition at line 56 of file MichelsonChannel.C.

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


Member Data Documentation

Image<float> MichelsonChannel::itsMap [protected]
 

our michelson contrast map

Definition at line 69 of file MichelsonChannel.H.

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


The documentation for this class was generated from the following files:
Generated on Sun Nov 22 13:46:02 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4