37 lines
709 B
C
37 lines
709 B
C
|
/*
|
|||
|
GAMMA CORRECTION
|
|||
|
----------------
|
|||
|
*/
|
|||
|
|
|||
|
#include <stdio.h>
|
|||
|
#include <math.h>
|
|||
|
#include "tthimage.h"
|
|||
|
|
|||
|
/*::------------------------------------------------------------------::*/
|
|||
|
/*
|
|||
|
* 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;
|
|||
|
}
|
|||
|
/*::------------------------------------------------------------------::*/
|
|||
|
|
|||
|
/*::------------------------------------------------------------------::*/
|