JuliaImages / ImageView.jl

Interactive display of images and movies
MIT License
135 stars 34 forks source link

ImagesShow title keyword #244

Closed ashwani-rathee closed 2 years ago

ashwani-rathee commented 3 years ago

@johnnychen94 @timholy Noticed this while working with ImageMorphology.jl demos,though it's not good of way doing things,but I used same image for all operations which when trying to see them created lot of confusion

using Images, ImageView, ImageMorphology,TestImages

geom_img = testimage("resolution_test_512");
geom_img_binary = Gray.(Gray.(geom_img) .< 0.5); # keeps white objects white
geom_img_binary_e = erode(geom_img_binary)
imshow(geom_img_binary_e)
geom_img_binary_e = erode(erode(geom_img_binary_e))
imshow(geom_img_binary_e)

geom_img_binary_e = erode(erode(geom_img_binary_e))
imshow(geom_img_binary_e)

geom_img_binary = Gray.(1 * Gray.(geom_img) .> 0.5);
geom_img_binary_d = dilate(geom_img_binary)
imshow(geom_img_binary_d)

geom_img_binary_d = dilate(dilate(geom_img_binary_d))
imshow(geom_img_binary_d)

It did open 5 imshow widgets,but I can't find which one is which.How can I do this?It can be done with AnnotationText I think but It doesn't change widget name

timholy commented 2 years ago
help?> imshow
search: imshow imshow! imshow_gui

  imshow()

  Choose an image to display via a file dialog.

  ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

  imshow(img; axes=(1,2), name="ImageView") -> guidict
  imshow(img, clim; kwargs...) -> guidict
  imshow(img, clim, zoomregion, slicedata, annotations; kwargs...) -> guidict

  Display the image img in a new window titled with name, ...