如何给image.displaywindow起名字?
How to give name to image.display window?
给每一个取不同的名字window
require 'image'
local im = image.load('images/sampleimage.jpg')
w1 = image.display{image=im,win=w1}
w2 = image.display{image=im,win=w2}
w3 = image.display{image=im,win=w3}
当我是 运行 那个代码时,我得到每个显示 window 相同的名称("display.image")。我怎样才能给每个 window 取不同的名字?
我尝试了什么
我也查看了 this link 但我没有找到 window 名称的任何内容。
如有任何帮助,我们将不胜感激。
提前致谢...
你应该做的是将 legend="your_window_name"
参数传递给 image.display
方法。
你的情况:
w1 = image.display{image=im,win=w1,legend='your_window_name_for_w1'}
w2 = image.display{image=im,win=w2,legend='your_window_name_for_w2'}
w3 = image.display{image=im,win=w3,legend='your_window_name_for_w3'}
给每一个取不同的名字window
require 'image'
local im = image.load('images/sampleimage.jpg')
w1 = image.display{image=im,win=w1}
w2 = image.display{image=im,win=w2}
w3 = image.display{image=im,win=w3}
当我是 运行 那个代码时,我得到每个显示 window 相同的名称("display.image")。我怎样才能给每个 window 取不同的名字?
我尝试了什么
我也查看了 this link 但我没有找到 window 名称的任何内容。
如有任何帮助,我们将不胜感激。
提前致谢...
你应该做的是将 legend="your_window_name"
参数传递给 image.display
方法。
你的情况:
w1 = image.display{image=im,win=w1,legend='your_window_name_for_w1'}
w2 = image.display{image=im,win=w2,legend='your_window_name_for_w2'}
w3 = image.display{image=im,win=w3,legend='your_window_name_for_w3'}