2022-06-26 11:06:35 +02:00
|
|
|
|
/*
|
|
|
|
|
GAMMA CORRECTION
|
|
|
|
|
----------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <math.h>
|
2023-01-31 00:21:05 +01:00
|
|
|
|
#include "../tthimage.h"
|
2022-06-26 11:06:35 +02:00
|
|
|
|
|
|
|
|
|
/*::------------------------------------------------------------------::*/
|
|
|
|
|
/*
|
|
|
|
|
* 4 Oct 2003: il serait _vraiment_ temps que je finisse de
|
|
|
|
|
* coder cette fonction. fouillage de documentation
|
|
|
|
|
* en vue pour la soir<EFBFBD>e...
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
|
Image_gamma_calcul(double coef, int table[256])
|
|
|
|
|
{
|
|
|
|
|
int foo;
|
|
|
|
|
double a;
|
|
|
|
|
|
|
|
|
|
#if DEBUG_LEVEL
|
|
|
|
|
fprintf(stderr, "%s: coef = %g\n", __func__, coef);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
for (foo=0; foo<256; foo++)
|
|
|
|
|
{
|
|
|
|
|
a = (double)foo;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return FULL_NUCKED;
|
|
|
|
|
}
|
|
|
|
|
/*::------------------------------------------------------------------::*/
|