New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: sort draw.ellipse coordinates by default to make sure they are all contiguous #7206
Comments
Seems very sensible. 👍 |
Hey @jni I read the problem thoroughly. Can I open a pull request that sorts the coordinates based on the angle? |
@anamfatima1304 go for it! Thanks! |
Hello! May i know if anyone is working on this issue? if not may i pick this issue? |
hey @RitikaxShakya, this has been taken up in #7232. Though, it seems that work on has stalled a bit. Let's wait a few days to see if @anamfatima1304 wants to pick it up again. Otherwise feel welcome to open a PR in let's say 1 week. :D |
Hey @RitikaxShakya, if you are still interested, I've marked #7232 as ready to take over. 🙏 |
@lagru Cool! I will take up this issue. Thank you! |
Description:
Someone just upvoted this old SO answer of mine:
https://stackoverflow.com/questions/62339802/skimage-draw-ellipse-generates-two-undesired-lines
Basically, using plt.plot or any other line drawing software to draw an ellipse from our ellipse coordinates fails because of how the coordinates are sorted (or rather, not sorted):
The solution is to sort the coordinates based on the angle around the centroid. It's easy/fast enough and would make downstream work simpler, plus I think it's what most users would expect.
The text was updated successfully, but these errors were encountered: