Pma to Tiff file

I have a .pma file that I need to turn into a tiff file(s), so I was wondering if I could use ImageJ to do this? I know you can go from tiff to pma but I don’t know how to go from pma to tiff.

I have written a matlab code to convert pma to tiff or avi files. please contact me if you still need this function.