moving a function to a better place
This commit is contained in:
@@ -64,16 +64,6 @@ if (r == -1) {
|
||||
}
|
||||
}
|
||||
/* --------------------------------------------------------------------- */
|
||||
int contraste(char *str)
|
||||
{
|
||||
|
||||
if (!strcmp(str, "sqrt")) return CONTRAST_SQRT;
|
||||
if (!strcmp(str, "pow2")) return CONTRAST_POW2;
|
||||
if (!strcmp(str, "cos01")) return CONTRAST_COS01;
|
||||
|
||||
return -1;
|
||||
}
|
||||
/* --------------------------------------------------------------------- */
|
||||
void help(int v)
|
||||
{
|
||||
if (verbosity) {
|
||||
@@ -128,7 +118,8 @@ FloatImg cumul;
|
||||
|
||||
while ((opt = getopt(argc, argv, "c:d:ghn:o:O:p:s:uv")) != -1) {
|
||||
switch(opt) {
|
||||
case 'c': contrast = contraste(optarg); break;
|
||||
case 'c': contrast = fimg_id_contraste(optarg);
|
||||
break;
|
||||
case 'd': dev_name = optarg; break;
|
||||
case 'g': to_gray = 1; break;
|
||||
case 'h': help(0); break;
|
||||
|
||||
Reference in New Issue
Block a user