add support for loading yml images
This commit is contained in:
parent
d5013c69a8
commit
58bf764af9
4 changed files with 145 additions and 25 deletions
|
|
@ -27,6 +27,7 @@ struct Config
|
|||
std::string output = "";
|
||||
std::string norm = "";
|
||||
std::string bg = "";
|
||||
std::string curve = "";
|
||||
bool harris = false;
|
||||
float minSize = 7;
|
||||
unsigned int size = 50;
|
||||
|
|
@ -38,8 +39,9 @@ struct Config
|
|||
|
||||
const char *argp_program_version = "0.2";
|
||||
const char *argp_program_bug_address = "<carl@uvos.xyz>";
|
||||
static char doc[] = "Program to determine the lubricant thikness on a curved surface";
|
||||
static char args_doc[] = "";
|
||||
static char doc[] = "Program to determine the lubricant thikness on a curved surface.\n\
|
||||
Possible operations: apply create curve mkcurve mkboard";
|
||||
static char args_doc[] = "[OPERATION] IMAGE1 IMAGE2 ...";
|
||||
|
||||
static struct argp_option options[] =
|
||||
{
|
||||
|
|
@ -53,6 +55,7 @@ static struct argp_option options[] =
|
|||
{"output", 'o', "File Name", 0, "output file name" },
|
||||
{"interactive", 'i', 0, 0, "interactivly process multiple commands" },
|
||||
{"simpe-stich", 'a', 0, 0, "Use non blending sticher" },
|
||||
{"curve", 'c', "File Name", 0, "curve file name" },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
|
|
@ -92,6 +95,9 @@ error_t parse_opt (int key, char *arg, struct argp_state *state)
|
|||
case 'o':
|
||||
config->output.assign(arg);
|
||||
break;
|
||||
case 'c':
|
||||
config->curve.assign(arg);
|
||||
break;
|
||||
case ARGP_KEY_ARG:
|
||||
config->commandsFiles = &state->argv[state->next-1];
|
||||
state->next = state->argc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue