
#include <Channels/ObjDetChannel.H>
Inheritance diagram for ObjDetChannel:


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< LevelSpec > | itsLevelSpec |
| OModelParam< std::string > | itsCascadeFile |
|
|
Constructor.
Definition at line 57 of file ObjDetChannel.C. References cascade, OModelParam< T >::getVal(), itsCascadeFile, LFATAL, and storage. |
|
|
Virtual destructor.
Definition at line 78 of file ObjDetChannel.C. |
|
|
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. |
|
|
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(). |
|
|
special output function
Implements ChannelBase. Definition at line 192 of file ObjDetChannel.C. References itsMap. |
|
|
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. |
|
|
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. |
|
|
Return the number of feature maps represented by this channel.
Implements ChannelBase. Definition at line 86 of file ObjDetChannel.C. |
|
|
overload
Implements ChannelBase. Definition at line 82 of file ObjDetChannel.C. References Image< T >::initialized(), and itsMap. |
|
|
our face map
Definition at line 84 of file ObjDetChannel.H. Referenced by doInput(), getOutput(), getSubmap(), and outputAvailable(). |
1.4.4