Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
drwnSegImagePixelFeatures Class Referenceabstract

Interface for generating per-pixel features for a drwnSegImageInstance object. More...

Inheritance diagram for drwnSegImagePixelFeatures:
drwnCloneable drwnSegImageCompositePixelFeatures drwnSegImageFilePixelFeatures drwnSegImageStdPixelFeatures

Public Member Functions

 drwnSegImagePixelFeatures (const drwnSegImagePixelFeatures &pf)
drwnSegImagePixelFeaturesclone () const =0
 returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); }
virtual int numFeatures () const =0
 return feature vector size
virtual void cacheInstanceData (const drwnSegImageInstance &instance)
 caches data for a given drwnSegImageInstance
virtual void clearInstanceData ()
 clears any cached data
virtual void appendPixelFeatures (int x, int y, vector< double > &phi) const =0
 append features to phi for pixel (x,y) in the cached instance
virtual void appendAllPixelFeatures (vector< vector< double > > &phi) const
 append features to for all pixels in the cached instance

Protected Attributes

string _instanceName
 name of the chached instance (for error reporting)
int _instanceWidth
 height of the cached instance
int _instanceHeight
 width of the cached instance

Detailed Description

Interface for generating per-pixel features for a drwnSegImageInstance object.

Derived classes can be used for generating different features, e.g., filterbank responses, HOG, etc. Typical usage is:

See Also

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