X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 20 Jan 2014 05:13 PM by  anon
How to convert a .tif movie file to a .pma file
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
20 Jan 2014 05:13 PM
    Hello, I have a .tif movie file, which contains 100 .tif image (512x512) files. Now I have a IDL based script for .PMA file (512x512) analysis: -------------------------------------------------------------------------- openr, 1, Name + ".PMA" ; figure out size + allocate appropriately result = FSTAT(1) readu, 1, film_x readu, 1, film_y film_l = long(long(result.SIZE-4)/(long(film_x)*long(film_y))) print, "film x,y,l : ", film_x,film_y,film_l ------------------------------------------------------------------------------ When I use this script to read a .PMA file, film_x = film_y = 512. For a .tif movie file, the output is film_x = 19789, film_y = 10752. I think I use openr function on a wrong way, maybe. Can I get some suggestion at here? Thanks!

    Deleted User



    New Member


    Posts:
    New Member


    --
    23 Jan 2014 11:51 AM
    Hi Dapeng, What kind of format is .PMA? IDL doesn't have a specific routine to read that kind of format. Unless this is just a pure binary file? Then, you could use openr, and readu, etc. But you need to know your binary data, like the exact number of bytes, if it is little endian, big endian, in what type of machine was created?... etc Cheers, fernando
    You are not authorized to post a reply.