X-Boost  2.3.8
Public Types | Public Member Functions | Public Attributes | List of all members
CollapsedHaarFeature Struct Reference

an optimized HaarFeature More...

#include <CollapsedHaarFeature.h>

Public Types

typedef CollapsedHaarFeature OptimizedType
 

Public Member Functions

 CollapsedHaarFeature (const HaarFeature &src, int scale, long offset, long stride)
 
 CollapsedHaarFeature (const HaarFeature &src, int offset, const IntegralImageParams &p)
 
 CollapsedHaarFeature (const HaarFeature &src, long offset, long stride)
 
void invert_polarity ()
 invert the sign of haar nodes (in order to simplify the decision stump)
 
int debug (const unsigned int *pIntImage) const
 
int response (const unsigned int *pIntImage) const
 compute the response
 
int operator() (const unsigned int *pIntImage) const
 

Public Attributes

std::vector< CollapsedHaarNodem_nodes
 

Detailed Description

an optimized HaarFeature

Constructor & Destructor Documentation

CollapsedHaarFeature::CollapsedHaarFeature ( const HaarFeature src,
int  scale,
long  offset,
long  stride 
)
inline

compute an optimized version from an HaarFeature TODO: separate scale and offset+stride

CollapsedHaarFeature::CollapsedHaarFeature ( const HaarFeature src,
long  offset,
long  stride 
)
inline

compute an optimized version from an HaarFeature


The documentation for this struct was generated from the following file: