FloatImg/lib/runme.sh

36 lines
793 B
Bash
Raw Normal View History

2019-11-13 05:31:00 +11:00
#!/bin/bash
2021-05-20 17:38:23 +11:00
# --------------------------------------------------------------------
function grab
{
2019-11-20 21:12:16 +11:00
../v4l2/grabvidseq -s 960x720 -n 100 -p 0.193 \
-vv -c none \
-o original.fimg
2021-05-20 17:38:23 +11:00
}
# --------------------------------------------------------------------
2019-11-15 00:23:12 +11:00
2019-11-13 05:31:00 +11:00
make t && ./t
2019-11-20 21:12:16 +11:00
../tools/fimgops original.fimg cos_01.fimg mini minimum.fimg
../tools/fimgops original.fimg cos_01.fimg maxi maximum.fimg
for picz in original power2 squareroot cos_01 minimum maximum
2019-11-13 05:31:00 +11:00
do
2021-05-20 17:38:23 +11:00
echo "_______________________" ${picz}
2019-11-15 00:23:12 +11:00
# ../tools/fimgstats -v ${picz}.fimg
2019-11-21 12:12:53 +11:00
../tools/fimg2pnm ${picz}.fimg ${picz}.pnm
2019-11-13 05:31:00 +11:00
convert -pointsize 48 \
-fill black -annotate +14+40 "${picz}" \
-fill white -annotate +16+42 "${picz}" \
2019-11-13 05:31:00 +11:00
${picz}.pnm ${picz}.png
2019-11-15 00:23:12 +11:00
rm ${picz}.pnm
2019-11-13 05:31:00 +11:00
done
2019-11-15 00:23:12 +11:00
convert -delay 150 *.png foo.gif
2019-11-13 05:31:00 +11:00