Update of /cvsroot/wavelet/Wavelet
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv985
Modified Files:
Image.cc
Log Message:
Fix to Image::gammaCorrection(), did not work with values < 0.
Index: Image.cc
===================================================================
RCS file: /cvsroot/wavelet/Wavelet/Image.cc,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** Image.cc 13 Jul 2005 13:55:53 -0000 1.18
--- Image.cc 13 Jul 2005 15:20:30 -0000 1.19
***************
*** 246,251 ****
coeff max = smax (yoffs, xoffs, toY, toX);
coeff amin = fabs (min);
! int iMin = tools_coeff2pixel (min - 0.5);
! int iMax = tools_coeff2pixel (max + 0.5);
coeff norm = 255.0;
coeff lift = 0.0;
--- 246,251 ----
coeff max = smax (yoffs, xoffs, toY, toX);
coeff amin = fabs (min);
! int iMin = tools_coeff2int (min - 0.5);
! int iMax = tools_coeff2int (max + 0.5);
coeff norm = 255.0;
coeff lift = 0.0;
|