From c736ff2c1a32f3a465aaceaf5e855b68138751eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Sun, 9 Nov 2014 22:07:05 +0100 Subject: [PATCH] MAINT: mutualize function --- skimage/draw/draw.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/skimage/draw/draw.py b/skimage/draw/draw.py index 01fb4bf3..b6bc5588 100644 --- a/skimage/draw/draw.py +++ b/skimage/draw/draw.py @@ -1,10 +1,6 @@ # coding: utf-8 import numpy as np - - -def _coords_inside_image(rr, cc, shape): - mask = (rr >= 0) & (rr < shape[0]) & (cc >= 0) & (cc < shape[1]) - return rr[mask], cc[mask] +from ._draw import _coords_inside_image def _ellipse_in_shape(shape, center, radiuses):