mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-11 08:17:09 +08:00
11 lines
333 B
Cython
11 lines
333 B
Cython
"""Export fast union find in Cython"""
|
|
cimport numpy as np
|
|
|
|
DTYPE = np.intp
|
|
ctypedef np.intp_t DTYPE_t
|
|
|
|
cdef DTYPE_t find_root(DTYPE_t *forest, DTYPE_t n)
|
|
cdef set_root(DTYPE_t *forest, DTYPE_t n, DTYPE_t root)
|
|
cdef join_trees(DTYPE_t *forest, DTYPE_t n, DTYPE_t m)
|
|
cdef link_bg(DTYPE_t *forest, DTYPE_t n, DTYPE_t *background_node)
|