MAINT: mutualize function

This commit is contained in:
François Boulogne
2014-11-09 22:07:05 +01:00
parent 8e2f397700
commit c736ff2c1a
+1 -5
View File
@@ -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):