How to load a collection of image files with Images.jl or ImageView.jl

I have generated (in //) a collection of image files : toto1.gif, toto2.gif,…,toto100.gif
How can I load and visualize them with ImageView.jl ?

Laurent

Have you looked here?

Actually I did, but I do not find any example starting from a collection of input files…
Should I take a second look ?

Depending on what you want to achieve, wouldn’t this or this be good starting points?

OK, I was not able to find any direct answer to my question in the previous link so I use a loop for reading the different image files and construct the 3D Array :

using Images,ImageView

function readimages(nimages)
    img=load("toto1.png")
    nx,ny=size(img)
    @show nx,ny,nimages
    images=zeros(RGB{Normed{UInt8,8}},nx,ny,nimages)
    for i=1:nimages
        img=load("toto$i.png")
        images[:,:,i].=img[:,:]
    end
    images
end

images=readimages(nδt)
imshow(images)

imshow allows to play the animation or to use the slider: nice :slight_smile: