我想使用 Image.jl
在 Jupyter 中显示图像。
doc说:
If you're using the IJulia notebook, images will be displayed automatically.
Julia code for the display of images can be found in ImageView. Installation of this package is recommended but not required.
但我没能找到任何方法来自动在 for 循环中显示图像。下面的代码是一个示例:
using Images
for i=1:10
convert(Image,rand(100,100))
end
我猜想在 IJulia 中存在一个未记录的绘制图像的函数,可以显式调用该函数来显示那些隐藏的结果。提前致谢! @索利
最佳答案
您需要使用display
函数,这是IJulia使用的,您可以在Multimedia I/O中找到它的文档。 Julia 手册的部分。
关于julia - 在IJulia中使用for循环时如何显示图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32752976/