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
drwnMultiSegConfig Class Reference

Manages configuration settings for multiple image segmentation. More...

Inheritance diagram for drwnMultiSegConfig:
drwnProperties drwnConfigurableModule

Public Member Functions

void readConfiguration (drwnXMLNode &node)
 read configuration from an XML node
 
void setConfiguration (const char *name, const char *value)
 set individual configurable parameter
 
void usage (std::ostream &os) const
 
string filebase (const char *dirKey, const char *baseName)
 returns a filename consisting of _baseDir, the directory corresponding to dirKey and baseName
 
string filebase (const char *dirKey, const string &baseName)
 returns a filename consisting of _baseDir, the directory corresponding to dirKey and baseName
 
string filename (const char *dirKey, const char *baseName, const char *extKey)
 returns a filename consisting of _baseDir, the directory corresponding to dirKey, baseName, and the extension corresponding to extKey
 
string filename (const char *dirKey, const string &baseName, const char *extKey)
 returns a filename consisting of _baseDir, the directory corresponding to dirKey, baseName, and the extension corresponding to extKey
 
- Public Member Functions inherited from drwnProperties
unsigned numProperties () const
 
bool hasProperty (const string &name) const
 
bool hasProperty (const char *name) const
 
unsigned findProperty (const string &name) const
 
unsigned findProperty (const char *name) const
 
void setProperty (unsigned indx, bool value)
 
void setProperty (unsigned indx, int value)
 
void setProperty (unsigned indx, double value)
 
void setProperty (unsigned indx, const string &value)
 
void setProperty (unsigned indx, const char *value)
 
void setProperty (unsigned indx, const Eigen::VectorXd &value)
 
void setProperty (unsigned indx, const Eigen::MatrixXd &value)
 
void setProperty (const char *name, bool value)
 
void setProperty (const char *name, int value)
 
void setProperty (const char *name, double value)
 
void setProperty (const char *name, const string &value)
 
void setProperty (const char *name, const char *value)
 
void setProperty (const char *name, const Eigen::VectorXd &value)
 
void setProperty (const char *name, const Eigen::MatrixXd &value)
 
string getPropertyAsString (unsigned indx) const
 
drwnPropertyType getPropertyType (unsigned indx) const
 
bool isReadOnly (unsigned indx) const
 
const drwnPropertyInterfacegetProperty (unsigned indx) const
 
const drwnPropertyInterfacegetProperty (const char *name) const
 
bool getBoolProperty (unsigned indx) const
 
int getIntProperty (unsigned indx) const
 
double getDoubleProperty (unsigned indx) const
 
const string & getStringProperty (unsigned indx) const
 
const list< string > & getListProperty (unsigned indx) const
 
int getSelectionProperty (unsigned indx) const
 
const Eigen::VectorXd & getVectorProperty (unsigned indx) const
 
const Eigen::MatrixXd & getMatrixProperty (unsigned indx) const
 
const string & getPropertyName (unsigned indx) const
 
vector< string > getPropertyNames () const
 
void readProperties (drwnXMLNode &xml, const char *tag="property")
 
void writeProperties (drwnXMLNode &xml, const char *tag="property") const
 
void printProperties (ostream &os) const
 

Protected Attributes

string _baseDir
 base directory for data, models and results
 
string _imgDir
 directory containing images (relative to _baseDir)
 
string _lblDir
 directory conatining labels (relative to _baseDir)
 
string _segDir
 directory containing over-segmentations (relative to _baseDir)
 
string _cacheDir
 directory to store pre-computed features (relative to _baseDir)
 
string _modelsDir
 directory to read and write model files (relative to _baseDir)
 
string _outputDir
 directory to write results (relative to _baseDir)
 
string _imgExt
 file extension of images
 
string _lblExt
 file extension of image
 
string _segExt
 file extension for over-segmentations (drwnSuperpixelContainer)
 
bool _bUseCache
 set true to store features in the _cacheDir
 
bool _bCompressedCache
 set true to compress cached data
 

Additional Inherited Members

- Protected Member Functions inherited from drwnProperties
void declareProperty (const string &name, drwnPropertyInterface *optif)
 
void undeclareProperty (const string &name)
 
void exposeProperties (drwnProperties *opts, const string &prefix=string(""), bool bSerializable=false)
 
virtual void propertyChanged (const string &name)
 

Detailed Description

Manages configuration settings for multiple image segmentation.

The settings can be changed via an XML file (using -config) or separate command line options (using -set).

See Also
Multi-class Image Segmentation

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