Skip to content
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

Drawing a circle? #219

Open
kfeng19 opened this issue May 19, 2020 · 3 comments
Open

Drawing a circle? #219

kfeng19 opened this issue May 19, 2020 · 3 comments

Comments

@kfeng19
Copy link

kfeng19 commented May 19, 2020

Is it possible to add a method to draw circle annotations on the images?
I was testing circle detection in images and surprisingly there's no way to overlay a circle on the original image and the closest I can get is drawing a bunch of point annotations along a circle.

@zygmuntszpak
Copy link
Member

In case you need a workaround, there is some rudimentary functionality for drawing circles in the ImageDraw.jl package. There currently isn't any documentation for this package, so you will have to peek at the source code docstrings to see how to use it: https://github.com/JuliaImages/ImageDraw.jl/blob/master/src/circle2d.jl

I just noticed that there are some open pull request for adding the possibility of drawing shapes with different thickness as well: https://github.com/JuliaImages/ImageDraw.jl/pulls

A slightly more "heavy" solution is to use Makie.jl https://github.com/JuliaPlots/Makie.jl plot package and use the scatter function to plot a circle marker over your image.

@timholy
Copy link
Member

timholy commented May 20, 2020

If you want to add a circle method to the annotation framework here, I'd be glad to merge it.

@kfeng19
Copy link
Author

kfeng19 commented May 22, 2020

OK I'll give a try later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants