fix other equalize

This commit is contained in:
Olivier Debeir
2012-10-10 15:54:55 +02:00
parent c4dc33a27d
commit 7aae3ac6b6
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ cdef inline np.uint16_t kernel_bottomhat(int* histo, float pop, np.uint16_t g,in
return <np.uint16_t>(g-i)
cdef inline np.uint16_t kernel_egalise(int* histo, float pop, np.uint16_t g,int bitdepth,int maxbin, int midbin):
cdef inline np.uint16_t kernel_equalize(int* histo, float pop, np.uint16_t g,int bitdepth,int maxbin, int midbin):
cdef int i
cdef float sum = 0.
@@ -216,7 +216,7 @@ def equalize(np.ndarray[np.uint16_t, ndim=2] image,
char shift_x=0, char shift_y=0, int bitdepth=8):
"""local egalisation of the gray level
"""
return _core16(kernel_egalise,image,selem,mask,out,shift_x,shift_y,bitdepth)
return _core16(kernel_equalize,image,selem,mask,out,shift_x,shift_y,bitdepth)
def gradient(np.ndarray[np.uint16_t, ndim=2] image,
np.ndarray[np.uint8_t, ndim=2] selem,
+1 -1
View File
@@ -14,7 +14,7 @@ if __name__ == '__main__':
f2 = rank.bilateral_mean(a16,selem = selem,s0=500,s1=500)
selem = disk(50)
f3 = rank.egalise(a16,selem = selem)
f3 = rank.equalize(a16,selem = selem)
plt.figure()
plt.imshow(np.hstack((a8,f1)))