

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< Detection > | getBoundingBoxes (const float thresh) |
| Get bounding boxes. | |
| std::vector< Detection > | filterDetections (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. | |
Definition at line 58 of file DPM.H.
| DPM::DPM | ( | ) |
| 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 | ( | ) |
Convolve the whole model.
Definition at line 150 of file DPM.C.
References Image< T >::begin(), Image< T >::beginw(), Image< T >::clear(), Image< T >::getDims(), Image< T >::getHeight(), Image< T >::getWidth(), Image< T >::initialized(), rutz::make_shared(), min(), and NO_INIT.
| 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 | |||
| ) |
| 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().
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().
1.6.3