fixed the gamma correction in the color mixer.

This commit is contained in:
sccolbert
2009-11-06 21:06:23 +01:00
parent ca051a3e98
commit c4f75b7d47
@@ -180,6 +180,8 @@ def gamma(np.ndarray[np.uint8_t, ndim=3] img,
cdef float r, g, b
cdef int i, j
gamma = 1./gamma
for i in range(height):
for j in range(width):
r = <float>stateimg[i,j,0] / 255.