This repository has been archived on 2021-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
ipcv/julia_scripts/showpicture.jl
Nguyễn Anh Khoa a43837539e init
2019-05-14 22:37:19 +07:00

25 lines
468 B
Julia

module Showpicture
using Images, ImageView, Gtk.ShortNames
export showpicture
function showpicture(img)
guidict = imshow(img);
#If we are not in a REPL
if (!isinteractive())
c = Condition()
# Get the window
win = guidict["gui"]["window"]
# Notify the condition object when the window closes
signal_connect(win, :destroy) do widget
notify(c)
end
# Wait for the notification before proceeding ...
wait(c)
end
end
end