From 54043de4b4797fe2d51dfbfb6aab799fe3fae281 Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Wed, 28 Oct 2015 22:09:25 +0100 Subject: [PATCH] Change the import of round function to be compatible with visual studio compiler --- skimage/filters/rank/generic_cy.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,