Skip to content

Commit

Permalink
Merge pull request #3 from w-k-jones/v1.8.1
Browse files Browse the repository at this point in the history
Revert c52e958
  • Loading branch information
w-k-jones authored Nov 19, 2023
2 parents fab57c5 + a82baaf commit 868b566
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tobac_flow/_watershed.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ cdef inline double _euclid_dist(Py_ssize_t pt0, Py_ssize_t pt1,
@cython.boundscheck(False)
@cython.cdivision(True)
@cython.unraisable_tracebacks(False)
cdef inline DTYPE_BOOL_t _diff_neighbors(cnp.intp_t[::1] output,
cdef inline DTYPE_BOOL_t _diff_neighbors(DTYPE_INT32_t[::1] output,
cnp.intp_t[::1] structure,
DTYPE_BOOL_t[::1] mask,
Py_ssize_t index) nogil:
Expand All @@ -197,7 +197,7 @@ cdef inline DTYPE_BOOL_t _diff_neighbors(cnp.intp_t[::1] output,
"""
cdef:
Py_ssize_t i, neighbor_index
cnp.intp_t neighbor_label0, neighbor_label1
DTYPE_INT32_t neighbor_label0, neighbor_label1
Py_ssize_t nneighbors = structure.shape[0]

if not mask[index]:
Expand Down Expand Up @@ -228,7 +228,7 @@ def watershed_raveled(cnp.float64_t[::1] image,
DTYPE_BOOL_t[::1] mask,
cnp.intp_t[::1] strides,
cnp.double_t compactness,
cnp.intp_t[::1] output,
DTYPE_INT32_t[::1] output,
DTYPE_BOOL_t wsl):
"""Perform watershed algorithm using a raveled image and neighborhood.
Parameters
Expand Down

0 comments on commit 868b566

Please sign in to comment.