ObjDetChannel Class Reference

A template-matching channel for detecting pedestrians. More...

#include <Channels/ObjDetChannel.H>

Inheritance diagram for ObjDetChannel:
Inheritance graph
[legend]
Collaboration diagram for ObjDetChannel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ObjDetChannel (OptionManager &mgr, const std::string &descrName=std::string("ObjDetChannel"), const std::string &=std::string("ObjDetChannel"))
 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 std::string getSubmapNameShort (const uint index) const
 Get the name/description of the feature map at the given index, short version.
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
OModelParam< MaxNormTypeitsNormType
OModelParam< float > itsOutputRangeMin
 Set a fixed range of values for the raw output.
OModelParam< float > itsOutputRangeMax
OModelParam< bool > itsUseRandom
NModelParam< bool > itsNormalizeOutput
CvMemStorage * storage
CvHaarClassifierCascade * cascade

Detailed Description

A template-matching channel for detecting pedestrians.

Definition at line 49 of file ObjDetChannel.H.


Constructor & Destructor Documentation

ObjDetChannel::ObjDetChannel ( OptionManager mgr,
const std::string descrName = std::string("ObjDetChannel"),
const std::string tagName = std::string("ObjDetChannel") 
)

Constructor.

Definition at line 56 of file ObjDetChannel.C.

References OModelParam< T >::getVal().

ObjDetChannel::~ObjDetChannel (  )  [virtual]

Virtual destructor.

Definition at line 83 of file ObjDetChannel.C.


Member Function Documentation

void ObjDetChannel::doInput ( const InputFrame inframe  )  [virtual]
Dims ObjDetChannel::getMapDims (  )  const [virtual]

Return the dimensions of the output image.

Implements ChannelBase.

Definition at line 97 of file ObjDetChannel.C.

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

Referenced by doInput().

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

special output function

Implements ChannelBase.

Definition at line 238 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 216 of file ObjDetChannel.C.

References itsMap.

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 225 of file ObjDetChannel.C.

std::string ObjDetChannel::getSubmapNameShort ( const uint  index  )  const [virtual]

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

Implements ChannelBase.

Definition at line 231 of file ObjDetChannel.C.

uint ObjDetChannel::numSubmaps (  )  const [virtual]

Return the number of feature maps represented by this channel.

Implements ChannelBase.

Definition at line 91 of file ObjDetChannel.C.

bool ObjDetChannel::outputAvailable (  )  const [virtual]

overload

Implements ChannelBase.

Definition at line 87 of file ObjDetChannel.C.

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


Member Data Documentation

Image<float> ObjDetChannel::itsMap [protected]

our face map

Definition at line 85 of file ObjDetChannel.H.

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

Set a fixed range of values for the raw output.

Definition at line 91 of file ObjDetChannel.H.

Referenced by doInput().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:38 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3