I am trying to load a .gif file and find the physical dimensions of entities in the file.
i.e I want to find the volume occupied by each cell in the 3D volume.

[![enter image description here](https://i.stack.imgur.com/48P8qm.png)](https://i.stack.imgur.com/48P8qm.png)

[gif source](https://github.com/Kafri-Lab/Cell-3D-Image-Analysis)

One could do the following to get the frames in GIF.([code ref.](https://github.com/marcomusy/vedo/blob/cbf6639f2eb10491527beaf7cc3656c797f9fb42/vedo/io.py))

```
       from PIL import Image, ImageSequence
       img = Image.open(filename)
       frames = []
       for frame in ImageSequence.Iterator(img):
           a = np.array(frame.convert('RGB').getdata(), dtype=np.uint8)
           a = a.reshape(frame.size[1], frame.size[0],3)
           frames.append(Picture(a))
       return frames

```

I am not sure what has to be done next.

Could someone please offer some suggestions?