![]() |
Visual Servoing Platform
version 3.2.0
|
#include <vpXmlConfigParserKeyPoint.h>
Public Member Functions | |
vpXmlConfigParserKeyPoint () | |
virtual | ~vpXmlConfigParserKeyPoint () |
std::string | getDetectorName () const |
std::string | getExtractorName () const |
std::string | getMatcherName () const |
double | getMatchingFactorThreshold () const |
vpMatchingMethodEnum | getMatchingMethod () const |
double | getMatchingRatioThreshold () const |
int | getNbRansacIterations () const |
int | getNbRansacMinInlierCount () const |
double | getRansacConsensusPercentage () const |
double | getRansacReprojectionError () const |
double | getRansacThreshold () const |
bool | getUseRansacConsensusPercentage () const |
bool | getUseRansacVVSPoseEstimation () const |
void | parse (const std::string &filename) |
Public Member Functions Inherited from vpXmlParser | |
void | save (const std::string &filename, const bool append=false) |
void | setMap (const std::map< std::string, int > &_map) |
void | setMainTag (const std::string &tag) |
Static Public Member Functions | |
Static Public Member Functions Inherited from vpXmlParser | |
static void | cleanup () |
Protected Member Functions Inherited from vpXmlParser | |
std::map< std::string, int > | nodeMap |
std::string | main_tag |
bool | xmlReadBoolChild (xmlDocPtr doc, xmlNodePtr node) |
char * | xmlReadCharChild (xmlDocPtr doc, xmlNodePtr node) |
double | xmlReadDoubleChild (xmlDocPtr doc, xmlNodePtr node) |
float | xmlReadFloatChild (xmlDocPtr doc, xmlNodePtr node) |
int | xmlReadIntChild (xmlDocPtr doc, xmlNodePtr node) |
std::string | xmlReadStringChild (xmlDocPtr doc, xmlNodePtr node) |
unsigned int | xmlReadUnsignedIntChild (xmlDocPtr doc, xmlNodePtr node) |
void | xmlWriteBoolChild (xmlNodePtr node, const char *label, const bool value) |
void | xmlWriteCharChild (xmlNodePtr node, const char *label, const char *value) |
void | xmlWriteDoubleChild (xmlNodePtr node, const char *label, const double value) |
void | xmlWriteFloatChild (xmlNodePtr node, const char *label, const float value) |
void | xmlWriteIntChild (xmlNodePtr node, const char *label, const int value) |
void | xmlWriteStringChild (xmlNodePtr node, const char *label, const std::string &value) |
void | xmlWriteUnsignedIntChild (xmlNodePtr node, const char *label, const unsigned int value) |
Definition at line 69 of file vpXmlConfigParserKeyPoint.h.
Enumerator for the different filtering matching method.
Definition at line 115 of file vpXmlConfigParserKeyPoint.h.
Predefined xml node identifier.
Definition at line 74 of file vpXmlConfigParserKeyPoint.h.
vpXmlConfigParserKeyPoint::vpXmlConfigParserKeyPoint | ( | ) |
Definition at line 52 of file vpXmlConfigParserKeyPoint.cpp.
|
inlinevirtual |
Default destructor.
Definition at line 162 of file vpXmlConfigParserKeyPoint.h.
|
inlinestaticinherited |
As stated in http://xmlsoft.org/html/libxml-parser.html#xmlCleanupParser to clean up memory allocated by the xml2 library itself, the user should call xmlCleanupParser() only when the process has finished using the xml2 library. In case of doubt abstain from calling this function or do it just before calling exit() to avoid leak reports from valgrind ! That's why in ViSP the destructor doesn't call xmlCleanupParser(). Rather we provide the static function vpXmlParser::cleanup() that calls xmlCleanupParser() that could be called just before exit().
Definition at line 309 of file vpXmlParser.h.
|
inline |
Get the detector name.
Definition at line 169 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the extractor name.
Definition at line 176 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the matcher name.
Definition at line 182 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the factor value.
Definition at line 189 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the filtering method.
Definition at line 196 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the ratio value.
Definition at line 203 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the maximum number of iterations for the Ransac method.
Definition at line 210 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the minimum number of inliers for the Ransac method.
Definition at line 217 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the percentage value of inliers for the Ransac method.
Definition at line 224 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the maximum reprojection error for a candidate inlier for the Ransac method.
Definition at line 232 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the maximum error for a candidate inlier for the Ransac method.
Definition at line 239 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the flag state to choose between a percentage of inliers or a fixed number.
Definition at line 247 of file vpXmlConfigParserKeyPoint.h.
|
inline |
Get the flag state to choose between OpenCV Ransac pose estimation or ViSP Ransac VVS pose estimation.
Definition at line 255 of file vpXmlConfigParserKeyPoint.h.
void vpXmlConfigParserKeyPoint::parse | ( | const std::string & | filename | ) |
Parse an XML file to get configuration value for vpKeyPoint class.
filename | : filename of the XML file to parse |
Parse an XML file to load configuration for vpKeyPoint class.
filename | : filename of the XML file to parse. |
Definition at line 95 of file vpXmlConfigParserKeyPoint.cpp.
|
inherited |
Save the content of the class in the file given in parameters. The data of the class are in the child class. This method calls the write_main_class method which has to be implemented for every class depending on the data to save.
filename | : the name of the file used to record the data |
append | : if true and if the file exists, the data will be added to the data already in the file |
Definition at line 452 of file vpXmlParser.cpp.
|
inlineinherited |
set the name of the main tag
The main tag corresponds to the name of the root node
tag | : name of the root node of the document |
Definition at line 294 of file vpXmlParser.h.
|
inlineinherited |
Set the map describing the data to parse. This map stores the name of each node and an associated key used to simplify the parsing of the file.
If the following file want to be parsed:
The following map has to be declared:
Or, you can use keyzord instead of number as key but it implies to declare in the child class an enumeration type of the name. For example:
_map | : the map describing the data to parse |
Definition at line 285 of file vpXmlParser.h.
|
protectedinherited |
read a boolean
doc | : The main xml document |
node | : a pointer to the node to read value |
Definition at line 281 of file vpXmlParser.cpp.
|
protectedinherited |
Read an array of character.
doc | : The main xml document |
node | : a pointer to the node to read value |
Definition at line 99 of file vpXmlParser.cpp.
Referenced by vpMbtXmlGenericParser::read_projection_error().
|
protectedinherited |
read a double
doc | : The main xml document |
node | : a pointer to the node to read value |
Definition at line 211 of file vpXmlParser.cpp.
Referenced by vpMbXmlParser::read_lod(), and vpMbtXmlGenericParser::read_lod().
|
protectedinherited |
read a float
doc | : The main xml document |
node | : a pointer to the node to read value |
Definition at line 244 of file vpXmlParser.cpp.
|
protectedinherited |
read an int
doc | : The main xml document |
node | : a pointer to the node to read value |
Definition at line 143 of file vpXmlParser.cpp.
Referenced by vpMbXmlParser::read_lod(), vpMbtXmlGenericParser::read_lod(), and vpMbtXmlGenericParser::read_projection_error().
|
protectedinherited |
Read an array of character.
doc | : The main xml document |
node | : a pointer to the node to read value |
Definition at line 119 of file vpXmlParser.cpp.
|
protectedinherited |
read an int
doc | : The main xml document |
node | : a pointer to the node to read value |
Definition at line 177 of file vpXmlParser.cpp.
|
protectedinherited |
write a bool.
node | : a pointer to the node to read value |
label | : label (name of the data) of the node |
value | : boolean to write (true or false) |
Definition at line 397 of file vpXmlParser.cpp.
|
protectedinherited |
write an array of character.
node | : a pointer to the node to read value |
label | : label (name of the data) of the node |
value | : pointer to the array of character to write |
Definition at line 305 of file vpXmlParser.cpp.
|
protectedinherited |
write a double.
node | : a pointer to the node to read value |
label | : label (name of the data) of the node |
value | : double to write |
Definition at line 365 of file vpXmlParser.cpp.
|
protectedinherited |
write a float.
node | : a pointer to the node to read value |
label | : label (name of the data) of the node |
value | : float to write |
Definition at line 381 of file vpXmlParser.cpp.
|
protectedinherited |
write an integer.
node | : a pointer to the node to read value |
label | : label (name of the data) of the node |
value | : integer to write |
Definition at line 333 of file vpXmlParser.cpp.
|
protectedinherited |
write an array of character.
node | : a pointer to the node to read value |
label | : label (name of the data) of the node |
value | : std::string to write; |
Definition at line 319 of file vpXmlParser.cpp.
|
protectedinherited |
write an unsigned integer.
node | : a pointer to the node to read value |
label | : label (name of the data) of the node |
value | : unsigned integer to write |
Definition at line 349 of file vpXmlParser.cpp.
|
protectedinherited |
The name of the main tag for the file to parse
Definition at line 230 of file vpXmlParser.h.
|
protectedinherited |
The map describing the data to parse
Definition at line 225 of file vpXmlParser.h.
Referenced by vpMbXmlParser::read_lod(), vpMbtXmlGenericParser::read_lod(), and vpMbtXmlGenericParser::read_projection_error().