Darwin
1.10(beta)
|
Interface for implementing a part-based constellation model (i.e., pictorial structures model) for object detection. More...
Public Member Functions | |
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"; }) | |
Protected Member Functions | |
virtual vector< cv::Mat > | computeMatchingCosts (const cv::Mat &img) const =0 |
Static Protected Member Functions | |
static vector< pair< cv::Point, cv::Size > > | initializePartLocations (int nParts, const cv::Size &imgSize) |
static cv::Scalar | partColorMap (int v) |
Protected Attributes | |
cv::Size | _baseSize |
vector< drwnPart * > | _parts |
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.