mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-27 11:27:08 +08:00
Avoid type incompatibility warnings
This commit is contained in:
@@ -63,7 +63,7 @@ def ellipse(cy, cx, yradius, xradius, shape=None):
|
||||
return _ellipse_in_shape(shape, center, radiuses)
|
||||
else:
|
||||
# rounding here is necessary to avoid rounding issues later
|
||||
upper_left = np.floor(center - radiuses)
|
||||
upper_left = np.floor(center - radiuses).astype(int)
|
||||
|
||||
shifted_center = center - upper_left
|
||||
|
||||
|
||||
Reference in New Issue
Block a user