DPM Class Reference

Collaboration diagram for DPM:
Collaboration graph
[legend]

List of all members.

Classes

struct  Detection
class  DPMJob
struct  HOGFeatures
struct  Model
struct  ModelComponent
struct  ModelPart
struct  ModelScore

Public Member Functions

 DPM ()
 Constructor.
virtual ~DPM ()
 Destructor.
void computeFeaturePyramid (const Image< PixRGB< byte > > &img)
void readModel (const char *fileName)
 Load a model from a file.
Image< PixRGB< byte > > getModelImage ()
 Get an image showing the model.
void convolveModel ()
 Convolve the whole model.
Image< double > convolveComponent (const int comp, const int level)
 Convolve just a component at a particular level in the pyramid.
std::vector< DetectiongetBoundingBoxes (const float thresh)
 Get bounding boxes.
std::vector< DetectionfilterDetections (const std::vector< Detection > &detections, const float overlap)
 Preform filtering using non maximum suppression.
Image< double > convolveFeatures (const ImageSet< double > &imgFeatures, const ImageSet< double > &filterFeatures)
Image< double > distanceTrans (const Image< double > &score, const std::vector< double > &deformation)
 Distance transform for deformation.
void dtHelper (const Image< double >::const_iterator src, Image< double >::iterator dst, Image< int >::iterator ptr, int step, int s1, int s2, int d1, int d2, double a, double b)
 Distance transform helper.

Detailed Description

Definition at line 58 of file DPM.H.


Constructor & Destructor Documentation

DPM::DPM (  ) 

Constructor.

Definition at line 55 of file DPM.C.

References rutz::shared_ptr< T >::reset().

DPM::~DPM (  )  [virtual]

Destructor.

Definition at line 62 of file DPM.C.


Member Function Documentation

Image< double > DPM::convolveComponent ( const int  comp,
const int  level 
)

Convolve just a component at a particular level in the pyramid.

Definition at line 208 of file DPM.C.

References distanceTrans(), Image< T >::getHeight(), Image< T >::getWidth(), and Point2D< T >::i.

void DPM::convolveModel (  ) 
Image< double > DPM::distanceTrans ( const Image< double > &  score,
const std::vector< double > &  deformation 
)

Distance transform for deformation.

Definition at line 361 of file DPM.C.

References Image< T >::begin(), dtHelper(), Image< T >::getDims(), Image< T >::getHeight(), Image< T >::getWidth(), and ZEROS.

Referenced by convolveComponent().

void DPM::dtHelper ( const Image< double >::const_iterator  src,
Image< double >::iterator  dst,
Image< int >::iterator  ptr,
int  step,
int  s1,
int  s2,
int  d1,
int  d2,
double  a,
double  b 
)

Distance transform helper.

Definition at line 333 of file DPM.C.

References squareOf().

Referenced by distanceTrans().

std::vector< DPM::Detection > DPM::filterDetections ( const std::vector< Detection > &  detections,
const float  overlap 
)

Preform filtering using non maximum suppression.

Definition at line 300 of file DPM.C.

std::vector< DPM::Detection > DPM::getBoundingBoxes ( const float  thresh  ) 

Get bounding boxes.

Definition at line 260 of file DPM.C.

References Dims::h(), Rectangle::tlbrI(), and Dims::w().

Image< PixRGB< byte > > DPM::getModelImage (  ) 

Get an image showing the model.

Definition at line 452 of file DPM.C.

References drawRect(), Image< T >::getDims(), inplacePaste(), rescale(), toRGB(), and ZEROS.

void DPM::readModel ( const char *  fileName  ) 

Load a model from a file.

Definition at line 516 of file DPM.C.

References Image< T >::getArrayPtr(), NO_INIT, and ImageSet< T >::push_back().


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