Files
scikit-image/skimage/measure/_ccomp.pxd
T
2014-05-08 18:04:03 +02:00

11 lines
351 B
Cython

"""Export fast union find in Cython"""
cimport numpy as cnp
DTYPE = cnp.intp
ctypedef cnp.intp_t DTYPE_t
cdef DTYPE_t find_root(DTYPE_t *forest, DTYPE_t n)
cdef void set_root(DTYPE_t *forest, DTYPE_t n, DTYPE_t root)
cdef void join_trees(DTYPE_t *forest, DTYPE_t n, DTYPE_t m)
cdef void link_bg(DTYPE_t *forest, DTYPE_t n, DTYPE_t *background_node)