While fixing something else, I happened to stumble across a way to solve
this problem. In your update command below, change it to
ImageView.view(canvas(canv1), img, interactive=false)
Somehow, creating the callbacks is preventing memory from being freed
properly.
For this to work, you'll have to do Pkg.update() first.
Sorry it took so long to track this down.
--Tim
On Friday, July 11, 2014 12:27:36 PM UTC-5, David A. wrote:
>
> How can we free up memory after displaying an image using ImageView module?
>
> To show the image I'm doing:
>
> img = imread("path")
> canv1, imageslice = ImageView.view(img)
>
> And to update it:
>
> ImageView.view(canvas(canv1), img)
>
>
> Memory usage keeps growing with each update. After trying the destroy()
> function the memory remains used. It only frees up that memory after
> closing the REPL window.
>
>