convert .avi to .mha

For a research project I collected .avi video files of the vasculature under the tongue of patients with a microscope. I need to convert these .avi files to .mha files for analysis in new software. Would this be something that is possible with 3dslicer.

I have tried to convert the images to .png and then load the images in 3dslicer. How would I create a single .mha file out of this. Is there a more efficient way to do this?

Thank you in advance!

I mean if you already read the PNGs as a volume then you are prtty much done. Right-click on the objects name and choose export to file and save as MHA.

Thank you for the quick response! I am a real novice at this. Just to check:

As a result of the conversion from .avi video to .png I have 100 seperate .png images.

Can these be loaded as 1 volume? Or is there an intermediate step I need to take?

To import pngs, the easiest is to use the imagestack module from Slicermorph extension.