Bibliothèque de traitements d'images en virgule flottante. http://la.buvette.org/photos/cumul/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

contrast-test.sh 791B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. CMDPATH="/usr/local/bin"
  3. WS="./tmp" # our workspace
  4. GRABOPT=" -d /dev/video0 -vu -n 240 -p 0.04 "
  5. GRAB=${WS}/"quux.fimg"
  6. COS01=${WS}/"cos01.fimg"
  7. COS010=${WS}/"cos010.fimg"
  8. SQRT=${WS}/"sqrt.fimg"
  9. POW2="${WS}/pow2.fimg"
  10. # --------- conversion fimg -> pnm
  11. f2p ()
  12. {
  13. dst=$(basename $1 .fimg).pnm
  14. echo == converting $1 to $dst
  15. ${CMDPATH}/fimg2pnm $1 $dst
  16. }
  17. # --------- capturer une image
  18. #
  19. ${CMDPATH}/grabvidseq ${GRABOPT} -o ${GRAB}
  20. echo ERRCODE $?
  21. f2p ${GRAB}
  22. # ----------- traitements
  23. #
  24. ${CMDPATH}/fimgfx pow2 $GRAB $POW2
  25. f2p $POW2
  26. ${CMDPATH}/fimgfx sqrt $GRAB $SQRT
  27. f2p $SQRT
  28. ${CMDPATH}/fimgfx cos01 $GRAB $COS01
  29. f2p $COS01
  30. ${CMDPATH}/fimgfx cos010 $GRAB $COS010
  31. f2p $COS010
  32. # ----------- présentation finale
  33. #
  34. echo == Making gif89a
  35. convert -delay 40 *.pnm foo.gif