An Image can be created from any AbstractArray that includes a sparse matrix:
julia> using Images julia> S = sprand(10^4, 10^4, 0.01); julia> img = grayim(S) Gray Images.Image with: data: 10000x10000 Base.SparseMatrix.SparseMatrixCSC{Float64,Int64} properties: colorspace: Gray spatialorder: xy
Now, what do you do with this image, determine how happy you are with this. But nothing prevents you from defining it.
UPDATE: images now treat any AbstractArray as an image, no more Images .
source share