Matrix Julia中的整数矩阵可视化
如何将随机整数矩阵转换为带有彩色网格的图像 我试着在看了a之后使用Matrix Julia中的整数矩阵可视化,matrix,julia,visualization,Matrix,Julia,Visualization,如何将随机整数矩阵转换为带有彩色网格的图像 我试着在看了a之后使用转换(Image,rand(Int,3,3)),但是我得到了 julia> using Images julia> convert(Image, rand(Int,3,3)) ERROR: UndefVarError: Image not defined Stacktrace: [1] top-level scope at none:0 您提供链接的教程非常旧。在Images.jl中,图像只是数组。不再有名为Ima
转换(Image,rand(Int,3,3))
,但是我得到了
julia> using Images
julia> convert(Image, rand(Int,3,3))
ERROR: UndefVarError: Image not defined
Stacktrace:
[1] top-level scope at none:0
您提供链接的教程非常旧。在
Images.jl
中,图像只是数组。不再有名为Image
的构造函数
using Images, ImageView
# this will show an image in which the highest value
# of the array is white and the lowest is black
imshow(rand(Int, 3, 3))
最好看一下这个部分的包