Struct containing the options when computing the multi-resolution SIFT-like descriptors.
Definition at line 466 of file vision/include/mrpt/vision/types.h.
#include <mrpt/vision/types.h>
|
| TMultiResDescOptions () |
| Default constructor. More...
|
|
| TMultiResDescOptions (const unsigned int &_basePSize, const std::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 &source, const std::string §ion) MRPT_OVERRIDE |
| This method load the options from a ".ini"-like file or memory-stored string list. More...
|
|
void | saveToConfigFile (mrpt::utils::CConfigFileBase &cfg, const std::string §ion) const MRPT_OVERRIDE |
| This method saves the options to a ".ini"-like file or memory-stored string list. More...
|
|
void | dumpToTextStream (mrpt::utils::CStream &out) const MRPT_OVERRIDE |
| This method should clearly display all the contents of the structure in textual form, sending it to a CStream. More...
|
|
void | loadFromConfigFileName (const std::string &config_file, const std::string §ion) |
| Behaves like loadFromConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to load the file. More...
|
|
void | saveToConfigFileName (const std::string &config_file, const std::string §ion) const |
| Behaves like saveToConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to save the file. More...
|
|
void | dumpToConsole () const |
| Just like dumpToTextStream() but sending the text to the console (std::cout) More...
|
|
|
static void | dumpVar_int (CStream &out, const char *varName, int v) |
| Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR. More...
|
|
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) |
|
◆ TMultiResDescOptions() [1/2]
mrpt::vision::TMultiResDescOptions::TMultiResDescOptions |
( |
| ) |
|
|
inline |
◆ TMultiResDescOptions() [2/2]
mrpt::vision::TMultiResDescOptions::TMultiResDescOptions |
( |
const unsigned int & |
_basePSize, |
|
|
const std::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 |
◆ dumpToConsole()
void mrpt::utils::CLoadableOptions::dumpToConsole |
( |
| ) |
const |
|
inherited |
◆ dumpToTextStream()
This method should clearly display all the contents of the structure in textual form, sending it to a CStream.
The default implementation in this base class relies on saveToConfigFile() to generate a plain text representation of all the parameters.
Reimplemented from mrpt::utils::CLoadableOptions.
◆ dumpVar_bool()
static void mrpt::utils::CLoadableOptions::dumpVar_bool |
( |
CStream & |
out, |
|
|
const char * |
varName, |
|
|
bool |
v |
|
) |
| |
|
staticprotectedinherited |
◆ dumpVar_double()
static void mrpt::utils::CLoadableOptions::dumpVar_double |
( |
CStream & |
out, |
|
|
const char * |
varName, |
|
|
double |
v |
|
) |
| |
|
staticprotectedinherited |
◆ dumpVar_float()
static void mrpt::utils::CLoadableOptions::dumpVar_float |
( |
CStream & |
out, |
|
|
const char * |
varName, |
|
|
float |
v |
|
) |
| |
|
staticprotectedinherited |
◆ dumpVar_int()
static void mrpt::utils::CLoadableOptions::dumpVar_int |
( |
CStream & |
out, |
|
|
const char * |
varName, |
|
|
int |
v |
|
) |
| |
|
staticprotectedinherited |
Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.
◆ dumpVar_string()
static void mrpt::utils::CLoadableOptions::dumpVar_string |
( |
CStream & |
out, |
|
|
const char * |
varName, |
|
|
const std::string & |
v |
|
) |
| |
|
staticprotectedinherited |
◆ loadFromConfigFile()
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
modeSelection = 1
- See also
- loadFromConfigFileName, saveToConfigFile
Implements mrpt::utils::CLoadableOptions.
◆ loadFromConfigFileName()
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
◆ saveToConfigFile()
◆ saveToConfigFileName()
void mrpt::utils::CLoadableOptions::saveToConfigFileName |
( |
const std::string & |
config_file, |
|
|
const std::string & |
section |
|
) |
| const |
|
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
◆ baseline
double mrpt::vision::TMultiResDescOptions::baseline |
◆ basePSize
uint32_t mrpt::vision::TMultiResDescOptions::basePSize |
◆ blurImage
bool mrpt::vision::TMultiResDescOptions::blurImage |
◆ comHScl
uint32_t mrpt::vision::TMultiResDescOptions::comHScl |
◆ comLScl
uint32_t mrpt::vision::TMultiResDescOptions::comLScl |
◆ computeDepth
bool mrpt::vision::TMultiResDescOptions::computeDepth |
◆ computeHashCoeffs
bool mrpt::vision::TMultiResDescOptions::computeHashCoeffs |
◆ cropValue
double mrpt::vision::TMultiResDescOptions::cropValue |
◆ cx
double mrpt::vision::TMultiResDescOptions::cx |
◆ cy
double mrpt::vision::TMultiResDescOptions::cy |
◆ fx
double mrpt::vision::TMultiResDescOptions::fx |
◆ scales
std::vector<double> mrpt::vision::TMultiResDescOptions::scales |
◆ sg1
double mrpt::vision::TMultiResDescOptions::sg1 |
◆ sg2
double mrpt::vision::TMultiResDescOptions::sg2 |
◆ sg3
double mrpt::vision::TMultiResDescOptions::sg3 |