using autoshift to zero
This commit is contained in:
parent
8bbe639ad5
commit
2a2bc51e70
@ -126,11 +126,21 @@ if (retval) {
|
|||||||
fprintf(stderr, "%s error %d on filter\n", __func__, retval);
|
fprintf(stderr, "%s error %d on filter\n", __func__, retval);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foo = fimg_auto_shift_to_zero(&img, &img);
|
||||||
|
if (foo) {
|
||||||
|
fprintf(stderr, "%s: err %d zero shift\n", __func__, foo);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
/** may be, we can check for negative values ? */
|
/** may be, we can check for negative values ? */
|
||||||
|
/** or is this useless because whe have shifted to zero ? */
|
||||||
if (verbosity > 1) {
|
if (verbosity > 1) {
|
||||||
foo = fimg_count_negativ(&img);
|
foo = fimg_count_negativ(&img);
|
||||||
fprintf(stderr, "%s -> %d / %d negative pixels\n", __func__,
|
if (foo) {
|
||||||
foo, img.width*img.height);
|
fprintf(stderr, "%s -> %d / %d negative pixels\n", __func__,
|
||||||
|
foo, img.width*img.height);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fimg_killborders(&img);
|
fimg_killborders(&img);
|
||||||
|
Loading…
Reference in New Issue
Block a user