mattdns
mattdns

Reputation: 894

image.display window in lua/torch

I am displaying images in torch using the image.display() function. However each time I call the function it creates a new window but I would like it to replace the existing one if that is possible. Possibly its something to do with the image.window() function but I can't figure it out. Thanks.

Upvotes: 3

Views: 2944

Answers (1)

deltheil
deltheil

Reputation: 16121

$ qlua
> require 'image'
> w = image.display(image.lena()) -- with positional arguments mode
> image.display{image=image.fabio(), win=w} -- with named arguments mode

Upvotes: 4

Related Questions