FloatImg4PythonBinding/scripts/contrast-test.sh

40 lines
563 B
Bash
Raw Normal View History

2019-11-29 19:55:52 +01:00
#!/bin/bash
GRAB="quux.fimg"
COS01="cos01.fimg"
2019-12-12 12:13:21 +01:00
COS010="cos010.fimg"
2019-11-29 19:55:52 +01:00
SQRT="sqrt.fimg"
POW2="pow2.fimg"
2019-12-12 12:13:21 +01:00
# --------- conversion fimg -> pnm
2019-11-29 19:55:52 +01:00
f2p ()
{
2019-12-12 12:13:21 +01:00
dst=$(basename $1 .fimg).pnm
echo == converting $1 to $dst
fimg2pnm $1 $dst
2019-11-29 19:55:52 +01:00
}
2019-12-12 12:13:21 +01:00
# --------- capturer une image
grabvidseq -v -n 77 -p 0.07 -o ${GRAB}
echo ERRCODE $?
f2p ${GRAB}
ls -rtl
exit
# XXXXXXXXXXXXXXXXXXXXXX
2019-11-29 19:55:52 +01:00
fimgfx -v pow2 $GRAB $POW2
f2p $POW2
fimgfx -v sqrt $GRAB $SQRT
f2p $SQRT
fimgfx -v cos01 $GRAB $COS01
f2p $COS01
2019-12-12 12:13:21 +01:00
fimgfx -v cos010 $GRAB $COS010
f2p $COS010
2019-11-29 19:55:52 +01:00
2019-12-12 12:13:21 +01:00
convert -delay 10 *.pnm foo.gif