I have an img that I display using
ImageView.imshow(img). When img is modified, I would like to tell imshow to update the image. A thread on discourse suggest to call again imshow as follows.
canvas = imshow(img)[“gui”][“canvas”]
… some modification to img
Unfortunately the second call to imshow is slow.
If instead I update the margins of the canvas, the redraw is faster (x10 at least)
Gtk.set_gtk_property!(canvas, :margin_top, some_value)
The problem is, I don’t want to change the margins! There should be another way to get a quick update of the image but I can’t find it. Any idea?