mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
the output of hough_ellipse needs to be rounded before being truncated
This commit is contained in:
1 parent
3faa32149a
commit
941cdda8f5
1 file changed
+4
-4
@@ -128,10 +128,10 @@ result.sort(order='accumulator')
|
||||
|
||||
# Estimated parameters for the ellipse
|
||||
best = result[-1]
|
||||
yc = int(best[1])
|
||||
xc = int(best[2])
|
||||
a = int(best[3])
|
||||
b = int(best[4])
|
||||
yc = int(round(best[1]))
|
||||
xc = int(round(best[2]))
|
||||
a = int(round(best[3]))
|
||||
b = int(round(best[4]))
|
||||
orientation = best[5]
|
||||
|
||||
# Draw the ellipse on the original image
|
||||
|
||||
Reference in new issue
Block a user