Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Public Attributes | Static Protected Member Functions
mrpt::vision::TMultiResDescOptions Struct Reference

Detailed Description

Struct containing the options when computing the multi-resolution SIFT-like descriptors.

#include <mrpt/vision/types.h>

Inheritance diagram for mrpt::vision::TMultiResDescOptions:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TMultiResDescOptions ()
 Default constructor.
 TMultiResDescOptions (const unsigned int &_basePSize, const vector< double > &_scales, const unsigned int &_comLScl, const unsigned int &_comHScl, const double &_sg1, const double &_sg2, const double &_sg3, const bool &_computeDepth, const bool _blurImage, const double &_fx, const double &_cx, const double &_cy, const double &_baseline, const bool &_computeHashCoeffs, const double &_cropValue)
void loadFromConfigFile (const mrpt::utils::CConfigFileBase &cfg, const std::string &section)
 This method load the options from a ".ini"-like file or memory-stored string list.
void saveToConfigFile (mrpt::utils::CConfigFileBase &cfg, const std::string &section)
 This method saves the options to a ".ini"-like file or memory-stored string list.
void dumpToTextStream (mrpt::utils::CStream &out) const
 This method must display clearly all the contents of the structure in textual form, sending it to a CStream.
void loadFromConfigFileName (const std::string &config_file, const std::string &section)
 Behaves like loadFromConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to load the file.
void saveToConfigFileName (const std::string &config_file, const std::string &section)
 Behaves like saveToConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to save the file.
void dumpToConsole () const
 This method must display clearly all the contents of the structure in textual form, sending it to a CStream.

Public Attributes

unsigned int basePSize
 The size of the base patch.
vector< double > scales
 The set of scales relatives to the base patch.
unsigned int comLScl
unsigned int comHScl
 The subset of scales for which to compute the descriptors.
double sg1
double sg2
double sg3
 The sigmas for the Gaussian kernels.
bool computeDepth
 Whether or not to compute the depth of the feature.
bool blurImage
 Whether or not to blur the image previously to compute the descriptors.
double fx
double cx
double cy
double baseline
 Intrinsic stereo pair parameters for computing the depth of the feature.
bool computeHashCoeffs
 Whether or not compute the coefficients for mantaining a HASH table of descriptors (for relocalization)
double cropValue
 The SIFT-like descriptor is cropped at this value during normalization.

Static Protected Member Functions

static void dumpVar_int (CStream &out, const char *varName, int v)
 Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.
static void dumpVar_float (CStream &out, const char *varName, float v)
static void dumpVar_double (CStream &out, const char *varName, double v)
static void dumpVar_bool (CStream &out, const char *varName, bool v)
static void dumpVar_string (CStream &out, const char *varName, const std::string &v)

Constructor & Destructor Documentation

mrpt::vision::TMultiResDescOptions::TMultiResDescOptions ( ) [inline]

Default constructor.

Definition at line 460 of file vision/include/mrpt/vision/types.h.

mrpt::vision::TMultiResDescOptions::TMultiResDescOptions ( const unsigned int &  _basePSize,
const vector< double > &  _scales,
const unsigned int &  _comLScl,
const unsigned int &  _comHScl,
const double &  _sg1,
const double &  _sg2,
const double &  _sg3,
const bool &  _computeDepth,
const bool  _blurImage,
const double &  _fx,
const double &  _cx,
const double &  _cy,
const double &  _baseline,
const bool &  _computeHashCoeffs,
const double &  _cropValue 
) [inline]

Definition at line 475 of file vision/include/mrpt/vision/types.h.


Member Function Documentation

void mrpt::utils::CLoadableOptions::dumpToConsole ( ) const [inherited]

This method must display clearly all the contents of the structure in textual form, sending it to a CStream.

void mrpt::vision::TMultiResDescOptions::dumpToTextStream ( mrpt::utils::CStream out) const [virtual]

This method must display clearly all the contents of the structure in textual form, sending it to a CStream.

Implements mrpt::utils::CLoadableOptions.

static void mrpt::utils::CLoadableOptions::dumpVar_bool ( CStream out,
const char *  varName,
bool  v 
) [static, protected, inherited]
static void mrpt::utils::CLoadableOptions::dumpVar_double ( CStream out,
const char *  varName,
double  v 
) [static, protected, inherited]
static void mrpt::utils::CLoadableOptions::dumpVar_float ( CStream out,
const char *  varName,
float  v 
) [static, protected, inherited]
static void mrpt::utils::CLoadableOptions::dumpVar_int ( CStream out,
const char *  varName,
int  v 
) [static, protected, inherited]

Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.

static void mrpt::utils::CLoadableOptions::dumpVar_string ( CStream out,
const char *  varName,
const std::string v 
) [static, protected, inherited]
void mrpt::vision::TMultiResDescOptions::loadFromConfigFile ( const mrpt::utils::CConfigFileBase source,
const std::string section 
) [virtual]

This method load the options from a ".ini"-like file or memory-stored string list.

Only those parameters found in the given "section" and having the same name that the variable are loaded. Those not found in the file will stay with their previous values (usually the default values loaded at initialization). An example of an ".ini" file:

  [section]
        resolution=0.10         ; blah blah...
        modeSelection=1         ; 0=blah, 1=blah,...
See also:
loadFromConfigFileName, saveToConfigFile

Implements mrpt::utils::CLoadableOptions.

void mrpt::utils::CLoadableOptions::loadFromConfigFileName ( const std::string config_file,
const std::string section 
) [inherited]

Behaves like loadFromConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to load the file.

See also:
loadFromConfigFile
void mrpt::vision::TMultiResDescOptions::saveToConfigFile ( mrpt::utils::CConfigFileBase source,
const std::string section 
) [virtual]

This method saves the options to a ".ini"-like file or memory-stored string list.

See also:
loadFromConfigFile, saveToConfigFileName

Reimplemented from mrpt::utils::CLoadableOptions.

void mrpt::utils::CLoadableOptions::saveToConfigFileName ( const std::string config_file,
const std::string section 
) [inherited]

Behaves like saveToConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to save the file.

See also:
saveToConfigFile, loadFromConfigFileName

Member Data Documentation

Intrinsic stereo pair parameters for computing the depth of the feature.

Definition at line 453 of file vision/include/mrpt/vision/types.h.

The size of the base patch.

Definition at line 447 of file vision/include/mrpt/vision/types.h.

Whether or not to blur the image previously to compute the descriptors.

Definition at line 452 of file vision/include/mrpt/vision/types.h.

The subset of scales for which to compute the descriptors.

Definition at line 449 of file vision/include/mrpt/vision/types.h.

Definition at line 449 of file vision/include/mrpt/vision/types.h.

Whether or not to compute the depth of the feature.

Definition at line 451 of file vision/include/mrpt/vision/types.h.

Whether or not compute the coefficients for mantaining a HASH table of descriptors (for relocalization)

Definition at line 454 of file vision/include/mrpt/vision/types.h.

The SIFT-like descriptor is cropped at this value during normalization.

Definition at line 456 of file vision/include/mrpt/vision/types.h.

Definition at line 453 of file vision/include/mrpt/vision/types.h.

Definition at line 453 of file vision/include/mrpt/vision/types.h.

Definition at line 453 of file vision/include/mrpt/vision/types.h.

The set of scales relatives to the base patch.

Definition at line 448 of file vision/include/mrpt/vision/types.h.

Definition at line 450 of file vision/include/mrpt/vision/types.h.

Definition at line 450 of file vision/include/mrpt/vision/types.h.

The sigmas for the Gaussian kernels.

Definition at line 450 of file vision/include/mrpt/vision/types.h.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011