Darwin
1.10(beta)
|
Interface for generating per-pixel features for a drwnSegImageInstance object. More...
Public Member Functions | |
drwnSegImagePixelFeatures (const drwnSegImagePixelFeatures &pf) | |
drwnSegImagePixelFeatures * | clone () 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 | |
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: