diff --git a/skimage/filters/rank/generic_cy.pyx b/skimage/filters/rank/generic_cy.pyx index 9ff17dd5..11e6ba8c 100644 --- a/skimage/filters/rank/generic_cy.pyx +++ b/skimage/filters/rank/generic_cy.pyx @@ -4,10 +4,11 @@ #cython: wraparound=False cimport numpy as cnp -from libc.math cimport log, exp, round +from libc.math cimport log, exp from .core_cy cimport dtype_t, dtype_t_out, _core +from ..._shared.interpolation cimport round cdef inline void _kernel_autolevel(dtype_t_out* out, Py_ssize_t odepth, Py_ssize_t* histo,