On Ubuntu 14.04, if I run the following code within the qlua interpreter invoked via the command line (with or without the first line), it displays the Lena image :
require('mobdebug').start() -- for image.display()
require 'image'
image.display( image.lena() )
and I can display a gray scale image via gnuplot:
require 'gnuplot'
require 'image'
M = image.rgb2y( image.lena() )
P = M[{1,{},{}}]
gnuplot.imagesc(P)
However, if I set the Zerobrane Studio v1.30 interpreter to QLua-LuaJIT (there is not a "qlua" interpreter) via Project->LuaInterpreter and run it, I get this error:
Program 'qlua' started in '/opt/zbstudio/myprograms' (pid: 4608).
Debugging session started in '/opt/zbstudio/myprograms/'.
tput: No value for $TERM and no -T specified
/home/dj/torch/install/share/lua/5.1/mobdebug.lua:1093: attempt to call local 'report' (a string value)
stack traceback:
[string "xpcall(function() io.stdout:setvbuf('no'); re..."]:1: in function 'report'
/home/dj/torch/install/share/lua/5.1/mobdebug.lua:1093: in function 'loop'
[string "xpcall(function() io.stdout:setvbuf('no'); re..."]:1: in function <[string "xpcall(function() io.stdout:setvbuf('no'); re..."]:1>
[C]: in function 'xpcall'
[string "xpcall(function() io.stdout:setvbuf('no'); re..."]:1: in main chunk
Debugging session completed (traced 4 instructions).
Program completed in 4.12 seconds (pid: 4608).
How do I display an RGB image from within ZBS?