#include <string>
Go to the source code of this file.
Defines | |
#define | NBSHAPEESTIMATORMODES 5 |
number of known ShapeEstimator modes: | |
#define | NBSHAPEESTIMATORSMOOTHMETHODS 3 |
number of known ShapeEstimator smooth methods | |
Enumerations | |
enum | ShapeEstimatorMode { SEMnone = 0, SEMfeatureMap = 1, SEMconspicuityMap = 2, SEMsaliencyMap = 3, SEMMTfeatureMap = 4 } |
Possible ShapeEstimator modes. More... | |
enum | ShapeEstimatorSmoothMethod { SESMnone = 0, SESMgaussian = 1, SESMchamfer = 2 } |
Possible ShapeEstimator smooth methods. More... | |
Functions | |
const char * | shapeEstimatorModeName (const ShapeEstimatorMode p) |
Returns name of given mode. | |
const char * | shapeEstimatorSmoothMethodName (const ShapeEstimatorSmoothMethod p) |
Returns name of given smooth method. | |
std::string | convertToString (const ShapeEstimatorMode val) |
ShapeEstimatorMode overload. | |
void | convertFromString (const std::string &str, ShapeEstimatorMode &val) |
ShapeEstimatorMode overload. | |
std::string | convertToString (const ShapeEstimatorSmoothMethod val) |
ShapeEstimatorSmoothType overload. | |
void | convertFromString (const std::string &str, ShapeEstimatorSmoothMethod &val) |
ShapeEstimatorSmoothType overload. |
definition of the shape estimator modes
Definition in file ShapeEstimatorModes.H.
#define NBSHAPEESTIMATORMODES 5 |
number of known ShapeEstimator modes:
Definition at line 54 of file ShapeEstimatorModes.H.
Referenced by convertFromString(), and shapeEstimatorModeName().
#define NBSHAPEESTIMATORSMOOTHMETHODS 3 |
number of known ShapeEstimator smooth methods
Definition at line 74 of file ShapeEstimatorModes.H.
Referenced by convertFromString(), and shapeEstimatorSmoothMethodName().
enum ShapeEstimatorMode |
Possible ShapeEstimator modes.
SEMfeatureMap |
No shape estimation. |
SEMconspicuityMap |
Based on winning feature map. |
SEMsaliencyMap |
Based on winning conspicuity map. |
SEMMTfeatureMap |
Based on saliency map. |
Definition at line 44 of file ShapeEstimatorModes.H.
Possible ShapeEstimator smooth methods.
Definition at line 66 of file ShapeEstimatorModes.H.
void convertFromString | ( | const std::string & | str, | |
ShapeEstimatorSmoothMethod & | val | |||
) |
ShapeEstimatorSmoothType overload.
Format is "name" as defined in ShapeEstimatorModes.H
Definition at line 68 of file ShapeEstimatorModes.C.
References NBSHAPEESTIMATORSMOOTHMETHODS, and shapeEstimatorSmoothMethodName().
void convertFromString | ( | const std::string & | str, | |
ShapeEstimatorMode & | val | |||
) |
ShapeEstimatorMode overload.
Format is "name" as defined in ShapeEstimatorModes.H
Definition at line 50 of file ShapeEstimatorModes.C.
References NBSHAPEESTIMATORMODES, and shapeEstimatorModeName().
std::string convertToString | ( | const ShapeEstimatorSmoothMethod | val | ) |
ShapeEstimatorSmoothType overload.
Format is "name" as defined in ShapeEstimatorModes.H
Definition at line 65 of file ShapeEstimatorModes.C.
References shapeEstimatorSmoothMethodName().
std::string convertToString | ( | const ShapeEstimatorMode | val | ) |
ShapeEstimatorMode overload.
Format is "name" as defined in ShapeEstimatorModes.H
Definition at line 47 of file ShapeEstimatorModes.C.
References shapeEstimatorModeName().
const char* shapeEstimatorModeName | ( | const ShapeEstimatorMode | p | ) | [inline] |
Returns name of given mode.
Definition at line 57 of file ShapeEstimatorModes.H.
References NBSHAPEESTIMATORMODES.
Referenced by convertFromString(), and convertToString().
const char* shapeEstimatorSmoothMethodName | ( | const ShapeEstimatorSmoothMethod | p | ) | [inline] |
Returns name of given smooth method.
Definition at line 77 of file ShapeEstimatorModes.H.
References NBSHAPEESTIMATORSMOOTHMETHODS.
Referenced by convertFromString(), and convertToString().