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

ForegroundDetectionChannel Class Reference

#include <Channels/ForegroundDetectionChannel.H>

Inheritance diagram for ForegroundDetectionChannel:

Inheritance graph
[legend]
Collaboration diagram for ForegroundDetectionChannel:

Collaboration graph
[legend]
List of all members.

Detailed Description

A channel for separating foreground from background.

Definition at line 52 of file ForegroundDetectionChannel.H.

Public Member Functions

 ForegroundDetectionChannel (OptionManager &mgr)
 Constructor.
virtual bool outputAvailable () const
 overload
virtual ~ForegroundDetectionChannel ()
 Virtual destructor.
virtual uint numSubmaps () const
 Return the number of feature maps represented by this channel.
virtual Image< float > getSubmap (const uint index) const
 Get the foreground detection map.
virtual Image< float > getRawCSmap (const uint idx) const
 Bogus function that just returns a blank image so that.
virtual std::string getSubmapName (const uint index) const
 Get the name/description of the feature map at the given index.
virtual void doInput (const InputFrame &inframe)
 special input function
virtual Image< float > getOutput ()
 special output function
virtual Dims getMapDims () const
 Return the dimensions of the output image.
virtual void getFeatures (const Point2D< int > &locn, std::vector< float > &mean) const
virtual void getFeaturesBatch (std::vector< Point2D< int > * > *locn, std::vector< std::vector< float > > *mean, int *count) const

Protected Attributes

Image< float > itsForegroundMap
Image< float > itsMap
 The probability map of foreground objects.
OModelParam< LevelSpecitsLevelSpec
 The rescaled output map - for now just the foreground map.


Constructor & Destructor Documentation

ForegroundDetectionChannel::ForegroundDetectionChannel OptionManager mgr  ) 
 

Constructor.

Definition at line 51 of file ForegroundDetectionChannel.C.

References LFATAL.

ForegroundDetectionChannel::~ForegroundDetectionChannel  )  [virtual]
 

Virtual destructor.

Definition at line 64 of file ForegroundDetectionChannel.C.


Member Function Documentation

void ForegroundDetectionChannel::doInput const InputFrame inframe  )  [virtual]
 

special input function

Reimplemented from SingleChannel.

Definition at line 107 of file ForegroundDetectionChannel.C.

References ASSERT, InputFrame::colorByte(), Image< T >::deepcopy(), getMinMax(), img2ipl(), Image< T >::initialized(), ipl2gray(), itsForegroundMap, itsMap, LINFO, and rescale().

Dims ForegroundDetectionChannel::getMapDims  )  const [virtual]
 

Return the dimensions of the output image.

Reimplemented from SingleChannel.

Definition at line 78 of file ForegroundDetectionChannel.C.

References ChannelBase::getInputDims(), OModelParam< T >::getVal(), Dims::h(), itsLevelSpec, LFATAL, LevelSpec::mapLevel(), and Dims::w().

Image< float > ForegroundDetectionChannel::getOutput  )  [virtual]
 

special output function

Reimplemented from SingleChannel.

Definition at line 172 of file ForegroundDetectionChannel.C.

References itsMap.

Image< float > ForegroundDetectionChannel::getRawCSmap const uint  idx  )  const [virtual]
 

Bogus function that just returns a blank image so that.

Reimplemented from SingleChannel.

Definition at line 159 of file ForegroundDetectionChannel.C.

Image< float > ForegroundDetectionChannel::getSubmap const uint  index  )  const [virtual]
 

Get the foreground detection map.

Reimplemented from SingleChannel.

Definition at line 150 of file ForegroundDetectionChannel.C.

References itsMap, and LFATAL.

std::string ForegroundDetectionChannel::getSubmapName const uint  index  )  const [virtual]
 

Get the name/description of the feature map at the given index.

This function is intended to be implemented by subclasses so that it recurses into any nested channels, mapping nested submaps into a linear sequence of indices. The output of this function is intended only to be human-readable (e.g. for labeling image displays), and does not have to follow any particular parseable syntax.

Reimplemented from SingleChannel.

Definition at line 165 of file ForegroundDetectionChannel.C.

uint ForegroundDetectionChannel::numSubmaps  )  const [virtual]
 

Return the number of feature maps represented by this channel.

Reimplemented from SingleChannel.

Definition at line 72 of file ForegroundDetectionChannel.C.

bool ForegroundDetectionChannel::outputAvailable  )  const [virtual]
 

overload

Reimplemented from SingleChannel.

Definition at line 68 of file ForegroundDetectionChannel.C.

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


Member Data Documentation

OModelParam<LevelSpec> ForegroundDetectionChannel::itsLevelSpec [protected]
 

The rescaled output map - for now just the foreground map.

Reimplemented from SingleChannel.

Definition at line 94 of file ForegroundDetectionChannel.H.

Referenced by getMapDims().

Image<float> ForegroundDetectionChannel::itsMap [protected]
 

The probability map of foreground objects.

Definition at line 93 of file ForegroundDetectionChannel.H.

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


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