I am trying to write an image sequence into gif file with imageio, but I am getting just a black image.
The code I am using:
import imageio
import numpy as np
m=np.zeros((5,5))
for i in range(5):
m[i,3]=1
with imageio.get_writer('test.gif', mode='I') as writer:
writer.append_data(m.astype(np.uint8))
I expect a growing white line..
P.S. I want the append to be inside the loop. I will use this for quite heavy image sequence, so I want to write-in on the fly