diff --git a/skimage/draw/__init__.py b/skimage/draw/__init__.py index 4aa6bf35..0cb0b72a 100644 --- a/skimage/draw/__init__.py +++ b/skimage/draw/__init__.py @@ -1,5 +1,2 @@ from ._draw import line, polygon, ellipse, ellipse_perimeter, \ - circle, circle_perimeter, set_color - - -bresenham = line + circle, circle_perimeter, set_color, bresenham diff --git a/skimage/draw/_draw.pyx b/skimage/draw/_draw.pyx index ee2b89e0..9dbcd914 100644 --- a/skimage/draw/_draw.pyx +++ b/skimage/draw/_draw.pyx @@ -8,6 +8,7 @@ import numpy as np cimport numpy as cnp from libc.math cimport sqrt from skimage._shared.geometry cimport point_in_polygon +from skimage._shared.utils import deprecated def line(Py_ssize_t y, Py_ssize_t x, Py_ssize_t y2, Py_ssize_t x2): @@ -73,6 +74,9 @@ def line(Py_ssize_t y, Py_ssize_t x, Py_ssize_t y2, Py_ssize_t x2): return rr, cc +bresenham = deprecated('skimage.draw.line')(line) + + def polygon(y, x, shape=None): """Generate coordinates of pixels within polygon.