JuliaImages / ImageView.jl

Interactive display of images and movies
MIT License
136 stars 32 forks source link

Drawing a circle? #219

Open kfeng19 opened 4 years ago

kfeng19 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

kfeng19 commented 4 years ago

OK I'll give a try later.