如何将原始二进制数组数据加载到Julia中并显示它?

如何将原始二进制数组数据加载到Julia中并显示它?,julia,ijulia-notebook,Julia,Ijulia Notebook,我想将原始图像数据(如中的.raw数据)加载到Julia中并显示它们。 基本上,我正在寻找一种将文件作为Array{xxx}类型加载到Julia中的方法 有什么想法吗?以下是代码和生成的绘图: using Plots, Images, HTTP r = HTTP.request("GET", "http://eeweb.poly.edu/%7Eyao/EL5123/image/lena_gray.raw") img = reshape(r.body, 51

我想将原始图像数据(如中的.raw数据)加载到Julia中并显示它们。 基本上,我正在寻找一种将文件作为
Array{xxx}
类型加载到Julia中的方法


有什么想法吗?

以下是代码和生成的绘图:

using Plots, Images, HTTP
r = HTTP.request("GET", "http://eeweb.poly.edu/%7Eyao/EL5123/image/lena_gray.raw")
img = reshape(r.body, 512, 512)
v = rotr90(colorview(Gray, img./256));
Plots.plot(v)
savefig("lena.png")