mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-02 11:54:53 +08:00
fixed the gamma correction in the color mixer.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user