Menu

Welcome to Open Discussion

2002-04-26
2002-07-26
  • Nobody/Anonymous

    Welcome to Open Discussion

     
    • Hugues Talbot

      Hugues Talbot - 2002-07-26

      Hi,

      Here is a shell script that might help newbies like me.

      I've installed the .rpm in /usr.

      #!/bin/sh

      # step 1 - motion estimation
      estpchirp2m -outp est.txt -steps 4 16 8 4 2 /usr/images/v04.pgm /usr/images/v06.pgm
      # keep only last result
      tail -1 est.txt > est_last.txt
      # step 2 - integrate
      pintegrate est_last.txt 0 > int.txt
      # once again, keep only last result
      tail -1 int.txt > int_last.txt
      # step 3 - modify 2nd frame
      pchirp2nocrop /usr/images/v06.pgm ./v06_mod.pgm `cat int_last.txt`
      # step 4 - merge both images
      cement v_final.pgm /usr/images/v04.pgm ./v06_mod.pgm

       

Log in to post a comment.