diff --git a/Lib/contrast.c b/Lib/contrast.c index 77d903e..5634ce9 100644 --- a/Lib/contrast.c +++ b/Lib/contrast.c @@ -14,8 +14,9 @@ */ int Image_egalise_cos01(Image_Desc *source, Image_Desc *but, int k) { -unsigned char lut[256], uc; -int idx, x, y, pix, foo; +int lut[256], uc; +int idx, foo; +/* int x, y, pix; */ float fidx; fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, @@ -33,6 +34,9 @@ for (idx=0; idx<256; idx++) { /* printf("%7d %7d\n", idx, uc); */ } +/* + * old original code, replaced... + * for (y=0; yheight; y++) { for (x=0; xwidth; x++) { @@ -45,8 +49,12 @@ for (y=0; yheight; y++) { } } + * + * ... by a func from 'calculs.c' + */ +Image_LUT_mono(source, but, lut); -return FULL_NUCKED; +return FUNC_IS_BETA; } /*::------------------------------------------------------------------::*/ /*