Compare commits

...

2 Commits

Author SHA1 Message Date
tth
802ec6e9c1 wtf? 2021-05-20 08:38:23 +02:00
tth
a87ad8dea2 put all the picz in the workspace 2021-05-20 08:36:55 +02:00
2 changed files with 11 additions and 8 deletions

View File

@ -1,20 +1,23 @@
#!/bin/bash
# --------------------------------------------------------------------
function grab
{
../v4l2/grabvidseq -s 960x720 -n 100 -p 0.193 \
-vv -c none \
-o original.fimg
}
# --------------------------------------------------------------------
make t && ./t
../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
do
echo _______________________ ${picz}
echo "_______________________" ${picz}
# ../tools/fimgstats -v ${picz}.fimg
../tools/fimg2pnm ${picz}.fimg ${picz}.pnm

View File

@ -2,9 +2,9 @@
CMDPATH="/usr/local/bin"
WS="./tmp" # our workspace
WS="${HOME}/TMP" # our workspace
GRABOPT=" -d /dev/video0 -vu -n 240 -p 0.04 "
GRABOPT=" -d /dev/video0 -v -n 240 -p 0.04 "
GRAB=${WS}/"quux.fimg"
COS01=${WS}/"cos01.fimg"
@ -15,9 +15,9 @@ POW2="${WS}/pow2.fimg"
# --------- conversion fimg -> pnm
f2p ()
{
dst=$(basename $1 .fimg).pnm
dst=EC_$(basename $1 .fimg).pnm
echo == converting $1 to $dst
${CMDPATH}/fimg2pnm $1 $dst
${CMDPATH}/fimg2pnm $1 ${WS}/$dst
}
# --------- capturer une image
@ -43,4 +43,4 @@ f2p $COS010
# ----------- présentation finale
#
echo == Making gif89a
convert -delay 40 *.pnm foo.gif
convert -delay 40 ${WS}/EC_*.pnm foo.gif