Fix styling of some comments

This commit is contained in:
Johannes Schönberger
2013-07-12 23:16:08 +02:00
parent ea8111d0e3
commit cd7959dd08
2 changed files with 8 additions and 10 deletions
+4 -5
View File
@@ -94,8 +94,7 @@ cdef void _core16(dtype_t kernel(Py_ssize_t*, float, dtype_t,
cdef Py_ssize_t* se_s_r = <Py_ssize_t*>malloc(max_se * sizeof(Py_ssize_t))
cdef Py_ssize_t* se_s_c = <Py_ssize_t*>malloc(max_se * sizeof(Py_ssize_t))
# build attack and release borders
# by using difference along axis
# build attack and release borders by using difference along axis
t = np.hstack((selem, np.zeros((selem.shape[0], 1))))
cdef char[:, :] t_e = np.diff(t, axis=1) < 0
@@ -172,11 +171,11 @@ cdef void _core16(dtype_t kernel(Py_ssize_t*, float, dtype_t,
midbin, p0, p1, s0, s1)
# kernel -------------------------------------------
r += 1 # pass to the next row
r += 1 # pass to the next row
if r >= rows:
break
# ---> north to south
# ---> north to south
for s in range(num_se_s):
rr = r + se_s_r[s]
cc = c + se_s_c[s]
@@ -213,7 +212,7 @@ cdef void _core16(dtype_t kernel(Py_ssize_t*, float, dtype_t,
midbin, p0, p1, s0, s1)
# kernel -------------------------------------------
r += 1 # pass to the next row
r += 1 # pass to the next row
if r >= rows:
break
+4 -5
View File
@@ -97,8 +97,7 @@ cdef void _core8(dtype_t kernel(Py_ssize_t*, float, dtype_t, float,
cdef Py_ssize_t* se_s_r = <Py_ssize_t*>malloc(max_se * sizeof(Py_ssize_t))
cdef Py_ssize_t* se_s_c = <Py_ssize_t*>malloc(max_se * sizeof(Py_ssize_t))
# build attack and release borders
# by using difference along axis
# build attack and release borders by using difference along axis
t = np.hstack((selem, np.zeros((selem.shape[0], 1))))
cdef char[:, :] t_e = np.diff(t, axis=1) < 0
@@ -174,11 +173,11 @@ cdef void _core8(dtype_t kernel(Py_ssize_t*, float, dtype_t, float,
out[r, c] = kernel(histo, pop, image[r, c], p0, p1, s0, s1)
# kernel ----------------------------------------------------------
r += 1 # pass to the next row
r += 1 # pass to the next row
if r >= rows:
break
# ---> north to south
# ---> north to south
for s in range(num_se_s):
rr = r + se_s_r[s]
cc = c + se_s_c[s]
@@ -214,7 +213,7 @@ cdef void _core8(dtype_t kernel(Py_ssize_t*, float, dtype_t, float,
histo, pop, image[r, c], p0, p1, s0, s1)
# kernel ----------------------------------------------------------
r += 1 # pass to the next row
r += 1 # pass to the next row
if r >= rows:
break