improve kfactor support
This commit is contained in:
parent
f2d5a905e8
commit
b5107bfc5a
4 changed files with 45 additions and 40 deletions
|
|
@ -35,6 +35,7 @@ struct Config
|
|||
bool quiet = false;
|
||||
bool interactive = false;
|
||||
bool simpleStich = false;
|
||||
float kFactor = 0;
|
||||
};
|
||||
|
||||
const char *argp_program_version = "0.2";
|
||||
|
|
@ -56,6 +57,7 @@ static struct argp_option options[] =
|
|||
{"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" },
|
||||
{"kfactor", 'k', "Value", 0, "set the kfactor" },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
|
|
@ -78,7 +80,7 @@ error_t parse_opt (int key, char *arg, struct argp_state *state)
|
|||
config->norm.assign(arg);
|
||||
break;
|
||||
case 's':
|
||||
config->minSize=atol(arg);
|
||||
config->minSize=strtod(arg, nullptr);
|
||||
break;
|
||||
case 'r':
|
||||
config->harris = true;
|
||||
|
|
@ -98,6 +100,9 @@ error_t parse_opt (int key, char *arg, struct argp_state *state)
|
|||
case 'c':
|
||||
config->curve.assign(arg);
|
||||
break;
|
||||
case 'k':
|
||||
config->kFactor=strtod(arg, nullptr);
|
||||
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