26 #include "drwnFilterBankResponse.h" 29 using namespace Eigen;
66 virtual int numFeatures()
const = 0;
71 virtual void clearInstanceData();
74 virtual void appendPixelFeatures(
int x,
int y, vector<double>& phi)
const = 0;
76 virtual void appendAllPixelFeatures(vector<vector<double> >& phi)
const;
111 void clearInstanceData();
114 int numFeatures()
const;
115 void appendPixelFeatures(
int x,
int y, vector<double>& phi)
const;
140 void clearInstanceData();
143 int numFeatures()
const;
144 void appendPixelFeatures(
int x,
int y, vector<double>& phi)
const;
153 std::list<drwnSegImagePixelFeatures *> _featureGenerators;
166 void clearInstanceData();
170 void appendPixelFeatures(
int x,
int y, vector<double>& phi)
const;
171 void appendAllPixelFeatures(vector<vector<double> >& phi)
const;
174 void clearFeatureGenerators();
179 DRWN_ASSERT(generator != NULL);
180 addFeatureGenerator(generator->
clone());
static bool INCLUDE_LOCATION
flag to include location features
Definition: drwnSegImagePixelFeatures.h:92
Class for generating composite per-pixel feature vectors.
Definition: drwnSegImagePixelFeatures.h:150
Encapsulates a single instance of an image for multi-class pixel labeling problems (i...
Definition: drwnSegImageInstance.h:47
static string AUX_FEATURE_DIR
directory for auxiliary features
Definition: drwnSegImagePixelFeatures.h:93
string _instanceName
name of the chached instance (for error reporting)
Definition: drwnSegImagePixelFeatures.h:51
int _instanceWidth
height of the cached instance
Definition: drwnSegImagePixelFeatures.h:52
drwnSegImageFilePixelFeatures * clone() const
returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); } ...
Definition: drwnSegImagePixelFeatures.h:134
void copyFeatureGenerator(const drwnSegImagePixelFeatures *generator)
copy feature generator (caller must free)
Definition: drwnSegImagePixelFeatures.h:178
list< string > featuresExt
feature file extensions
Definition: drwnSegImagePixelFeatures.h:124
Holds the results of running an image through a bank of filters and allows for computation of feature...
Definition: drwnFilterBankResponse.h:60
drwnSegImageStdPixelFeatures * clone() const
returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); } ...
Definition: drwnSegImagePixelFeatures.h:105
static bool INCLUDE_LBP
flag to include LBP features
Definition: drwnSegImagePixelFeatures.h:90
Interface for generating per-pixel features for a drwnSegImageInstance object.
Definition: drwnSegImagePixelFeatures.h:49
static bool INCLUDE_ROWCOLAGG
flag to include row and column aggregate features
Definition: drwnSegImagePixelFeatures.h:91
drwnFilterBankResponse _filters
pixel filter responses
Definition: drwnSegImagePixelFeatures.h:97
int numFeatures() const
return feature vector size
Definition: drwnSegImagePixelFeatures.h:169
Standard per-pixel filterbank features with option to read auxiliary features from a file...
Definition: drwnSegImagePixelFeatures.h:83
static bool INCLUDE_RGB
flag to include RGB colour features
Definition: drwnSegImagePixelFeatures.h:88
interface for cloning object (i.e., virtual copy constructor)
Definition: drwnInterfaces.h:36
static double FILTER_BANDWIDTH
bandwidth for filter features
Definition: drwnSegImagePixelFeatures.h:86
vector< vector< double > > _features
cached loaded features
Definition: drwnSegImagePixelFeatures.h:127
string featuresDir
directory containing feature files
Definition: drwnSegImagePixelFeatures.h:123
drwnSegImagePixelFeatures * clone() const =0
returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); } ...
int _instanceHeight
width of the cached instance
Definition: drwnSegImagePixelFeatures.h:53
static int FEATURE_GRID_SPACING
cell size for pixel features
Definition: drwnSegImagePixelFeatures.h:87
Pre-processed per-pixel features stored in files.
Definition: drwnSegImagePixelFeatures.h:121
static vector< string > AUX_FEATURE_EXT
auxiliary feature extensions
Definition: drwnSegImagePixelFeatures.h:94
vector< vector< double > > _auxFeatures
cached auxiliary features
Definition: drwnSegImagePixelFeatures.h:98
drwnSegImageCompositePixelFeatures * clone() const
returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); } ...
Definition: drwnSegImagePixelFeatures.h:160
static bool INCLUDE_HOG
flag to include HOG features
Definition: drwnSegImagePixelFeatures.h:89