FOUND_CLI_OPTION(
"image" ,
found::Image , image , {} ,
found::strtoimage(optarg) , kNoDefaultArgument,
REQ_ASSIGN,
"The image to process (JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC)") \
FOUND_CLI_OPTION(
"distance-algo" , std::string , distanceAlgo ,
SDDA , optarg , kNoDefaultArgument,
REQ_ASSIGN,
"The distance algorithm to use (SDDA or ISDDA)" ) \
FOUND_CLI_OPTION(
"isdda-min-iterations" ,
size_t , ISDDAMinIters , 0 ,
found::strtosize(optarg) , kNoDefaultArgument,
REQ_ASSIGN,
"The number of iterations for ISDDA" ) \
FOUND_CLI_OPTION(
"isdda-pdf-order" ,
int , ISDDAPdfOrd , 2 , atoi(optarg) , kNoDefaultArgument,
REQ_ASSIGN,
"The Probability Density Function Order for ISSDA (even int)" ) \
FOUND_CLI_OPTION(
"isdda-radius-loss-order" ,
int , ISDDARadLossOrd , 4 , atoi(optarg) , kNoDefaultArgument,
REQ_ASSIGN,
"The Radius Loss Order ISSDA (even int)" ) \
FOUND_CLI_OPTION(
"output-file" , std::string , outputFile ,
"" , optarg , kNoDefaultArgument,
REQ_ASSIGN,
"The output file (*.found)" ) \
double decimal
Definition decimal.hpp:15
#define DECIMAL_INF
Definition decimal.hpp:42
#define DECIMAL_M_R_E
Definition decimal.hpp:41
DataFile strtodf(const std::string &str)
Definition converters.hpp:127
Image strtoimage(const std::string &str)
Converts a string to an image.
Definition converters.hpp:115
size_t strtosize(const std::string &str)
Definition converters.hpp:42
decimal strtodecimal(const std::string &str)
Converts a string to a decimal.
Definition converters.hpp:56
unsigned char strtouc(const std::string &str)
Converts a string to an unsigned char.
Definition converters.hpp:38
bool strtobool(const std::string &str)
Converts the string to a bool.
Definition converters.hpp:100
const char kNoDefaultArgument
For macro processing.
Definition parser.cpp:63
#define defaultDFHead
Header for an empty/null Data File.
Definition options.hpp:31
#define SDDA
Definition options.hpp:44
#define OPT_ASSIGN(options, prop, value, default)
Assigns a flag with an optional value.
Definition parser.cpp:53
Represents a complete serialized data file.
Definition datafile.hpp:61
Represents an image.
Definition style.hpp:34
Distance Flags.