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

ObjDetChannel Class Reference

#include <Channels/ObjDetChannel.H>

Inheritance diagram for ObjDetChannel:

Inheritance graph
[legend]
Collaboration diagram for ObjDetChannel:

Collaboration graph
[legend]
List of all members.

Detailed Description

A template-matching channel for detecting pedestrians.

Definition at line 48 of file ObjDetChannel.H.

Public Member Functions

 ObjDetChannel (OptionManager &mgr)
 Constructor.
virtual bool outputAvailable () const
 overload
virtual ~ObjDetChannel ()
 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 feature map at the given index.
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 > itsMap
 our face map
OModelParam< LevelSpecitsLevelSpec
OModelParam< std::stringitsCascadeFile


Constructor & Destructor Documentation

ObjDetChannel::ObjDetChannel OptionManager mgr  ) 
 

Constructor.

Definition at line 57 of file ObjDetChannel.C.

References cascade, OModelParam< T >::getVal(), itsCascadeFile, LFATAL, and storage.

ObjDetChannel::~ObjDetChannel  )  [virtual]
 

Virtual destructor.

Definition at line 78 of file ObjDetChannel.C.


Member Function Documentation

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

special input function

Implements ChannelBase.

Definition at line 121 of file ObjDetChannel.C.

References ASSERT, cascade, Image< T >::getDims(), Image< T >::getHeight(), Image< T >::getWidth(), InputFrame::grayFloat(), Rectangle::height(), Point2D< T >::i, i, img2ipl(), Image< T >::initialized(), inplaceNormalize(), inplaceRectify(), itsMap, Point2D< T >::j, LDEBUG, lum, rescale(), storage, t, Rectangle::topLeft(), Rectangle::width(), and ZEROS.

Dims ObjDetChannel::getMapDims  )  const [virtual]
 

Return the dimensions of the output image.

Implements ChannelBase.

Definition at line 92 of file ObjDetChannel.C.

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

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

special output function

Implements ChannelBase.

Definition at line 192 of file ObjDetChannel.C.

References itsMap.

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

Get 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.

Implements ChannelBase.

Definition at line 176 of file ObjDetChannel.C.

References itsMap, and LFATAL.

std::string ObjDetChannel::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.

Implements ChannelBase.

Definition at line 185 of file ObjDetChannel.C.

uint ObjDetChannel::numSubmaps  )  const [virtual]
 

Return the number of feature maps represented by this channel.

Implements ChannelBase.

Definition at line 86 of file ObjDetChannel.C.

bool ObjDetChannel::outputAvailable  )  const [virtual]
 

overload

Implements ChannelBase.

Definition at line 82 of file ObjDetChannel.C.

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


Member Data Documentation

Image<float> ObjDetChannel::itsMap [protected]
 

our face map

Definition at line 84 of file ObjDetChannel.H.

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


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