Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
drwnHOGPartsModel Class Reference
Inheritance diagram for drwnHOGPartsModel:
drwnPartsModel drwnStdObjIface drwnWriteable drwnCloneable drwnTypeable

Public Member Functions

 drwnHOGPartsModel (const drwnHOGPartsModel &model)
const char * type () const
 returns object type as a string (e.g., Foo::type() { return "Foo"; })
drwnHOGPartsModelclone () const
 returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); }
void learnModel (int nParts, const vector< cv::Mat > &imgs)
void learnModel (const vector< cv::Size > &partSizes, const vector< pair< cv::Mat, drwnPartsAssignment > > &imgs)
- Public Member Functions inherited from drwnPartsModel
 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 double inference (const cv::Mat &img, drwnPartsAssignment &mapAssignment) const
virtual double inference (const cv::Mat &img, drwnPartsAssignment &mapAssignment, const cv::Point &centroidPrior) const
virtual double inference (const cv::Mat &img, drwnPartsAssignment &mapAssignment, const vector< cv::Mat > &partPriors, const cv::Mat &centroidPrior) 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
drwnPartsModeloperator= (const drwnPartsModel &model)
drwnPartoperator[] (unsigned indx)
const drwnPartoperator[] (unsigned indx) const
- Public Member Functions inherited from drwnWriteable
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)

Static Public Attributes

static int X_STEP_SIZE = 4
static int Y_STEP_SIZE = 4

Protected Member Functions

virtual vector< cv::Mat > computeMatchingCosts (const cv::Mat &img) const

Additional Inherited Members

- Static Protected Member Functions inherited from drwnPartsModel
static vector< pair< cv::Point,
cv::Size > > 
initializePartLocations (int nParts, const cv::Size &imgSize)
static cv::Scalar partColorMap (int v)
- Protected Attributes inherited from drwnPartsModel
cv::Size _baseSize
vector< drwnPart * > _parts

The documentation for this class was generated from the following files: