Interface for implementing a part-based constellation model (i.e., pictorial structures model) for object detection.
More...
|
| drwnPartsModel (const drwnPartsModel &model) |
|
int | numParts () const |
|
const cv::Size & | getBaseSize () const |
|
void | setBaseSize (const cv::Size &baseSize) |
|
virtual void | clear () |
|
bool | save (drwnXMLNode &xml) const |
| write object to XML node (see also write)
|
|
bool | load (drwnXMLNode &xml) |
| read object from XML node (see also read)
|
|
void | swap (drwnPartsModel &model) |
|
virtual drwnPartsModel * | clone () const =0 |
| returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); }
|
|
virtual double | inference (const cv::Mat &img, drwnPartsAssignment &mapAssignment) const |
|
virtual double | inference (const cv::Mat &img, drwnPartsAssignment &mapAssignment, const cv::Point ¢roidPrior) const |
|
virtual double | inference (const cv::Mat &img, drwnPartsAssignment &mapAssignment, const vector< cv::Mat > &partPriors, const cv::Mat ¢roidPrior) const |
|
virtual double | inference (const cv::Mat &img, drwnPartsAssignment &mapAssignment, double &bestScale, double startScale, double endScale, int numLevels) const |
|
cv::Mat | energyLandscape (const cv::Mat &img) const |
|
void | slidingWindowDetections (const cv::Mat &img, drwnObjectList &detections) const |
|
void | slidingWindowDetections (const cv::Mat &img, drwnObjectList &detections, int numLevelsPerOctave) const |
|
cv::Mat | showMAPPartLocations (const cv::Mat &img) const |
|
cv::Mat | showMAPPartLocations (const cv::Mat &img, const drwnPartsAssignment &assignment, double energy=DRWN_DBL_MAX, double scale=1.0) const |
|
cv::Mat | showPartEnergyLandscape (const cv::Mat &img) const |
|
drwnPartsModel & | operator= (const drwnPartsModel &model) |
|
drwnPart * | operator[] (unsigned indx) |
|
const drwnPart * | operator[] (unsigned indx) const |
|
bool | write (const char *filename) const |
| write object to file (calls save)
|
|
bool | read (const char *filename) |
| read object from file (calls load)
|
|
void | dump () const |
| print object's current state to standard output (for debugging)
|
|
virtual const char * | type () const =0 |
| returns object type as a string (e.g., Foo::type() { return "Foo"; })
|
|
Interface for implementing a part-based constellation model (i.e., pictorial structures model) for object detection.
Inference is done using distance transforms (on linear or quadratic deformation costs) for efficiency.
- Warning
- The drwnPartsModel and associated classes are currently experimental. The API and functionality may change in future versions.