plug the funny contrast adjustement in the grabber

This commit is contained in:
2019-12-04 11:17:45 +01:00
parent de3b31db94
commit b80839b076
4 changed files with 25 additions and 3 deletions

View File

@@ -122,6 +122,10 @@ FloatImg cumul;
while ((opt = getopt(argc, argv, "c:d:ghn:o:O:p:s:uv")) != -1) {
switch(opt) {
case 'c': contrast = fimg_id_contraste(optarg);
if (contrast < 0) {
fputs("unknow contrast\n", stderr);
exit(1);
}
break;
case 'd': dev_name = optarg; break;
case 'g': to_gray = 1; break;
@@ -344,6 +348,9 @@ switch (contrast) {
case CONTRAST_COS01:
fimg_cos_01(&cumul, NULL, maxvalue);
break;
case CONTRAST_COS010:
fimg_cos_010(&cumul, NULL, maxvalue);
break;
default:
fprintf(stderr, "bad contrast method\n");
break;