plug the funny contrast adjustement in the grabber
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user