DavideChicco.it
DavideChicco.it

Reputation: 3470

gfx.js on Torch / Lua, how to visualize an image?

I would like to use gfx.js in my Torch / Lua code, but it does not seem to work. I tried to install it and to run it by following the instructions here.

The installation worked fine. Then I ran:

$ luajit -lgfx.start
$ th
> gfx = require 'gfx.js'
> gfx.image(image.lena())

But then no image is shown. Instead, this string is printed:

[gfx.js] rendering cell <dom_1442598176079420629243124>

I've no idea about what this means and why I got it. Can someone give me some suggestions?

I'm working on CentOS Linux release 7.1.1503 (Core).

Upvotes: 0

Views: 379

Answers (1)

Etan Reisner
Etan Reisner

Reputation: 80961

The way the documentation reads it sounds like the gfx.image call will create the new image window in the browser accessed "page" that the first call started the server for.

That message looks very much like a "success" status message about gfx.js having done that.

Do you have that page loaded in your browser when you try this?

Upvotes: 1

Related Questions