Compare commits
No commits in common. "802ec6e9c1574e219cd1ad47d36fd4700192c048" and "41e77a518597fb5a226ded942d50d72dd48abffd" have entirely different histories.
802ec6e9c1
...
41e77a5185
@ -1,23 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
|
||||||
function grab
|
|
||||||
{
|
|
||||||
../v4l2/grabvidseq -s 960x720 -n 100 -p 0.193 \
|
../v4l2/grabvidseq -s 960x720 -n 100 -p 0.193 \
|
||||||
-vv -c none \
|
-vv -c none \
|
||||||
-o original.fimg
|
-o original.fimg
|
||||||
}
|
|
||||||
# --------------------------------------------------------------------
|
|
||||||
|
|
||||||
make t && ./t
|
make t && ./t
|
||||||
|
|
||||||
../tools/fimgops original.fimg cos_01.fimg mini minimum.fimg
|
../tools/fimgops original.fimg cos_01.fimg mini minimum.fimg
|
||||||
../tools/fimgops original.fimg cos_01.fimg maxi maximum.fimg
|
../tools/fimgops original.fimg cos_01.fimg maxi maximum.fimg
|
||||||
|
|
||||||
|
|
||||||
for picz in original power2 squareroot cos_01 minimum maximum
|
for picz in original power2 squareroot cos_01 minimum maximum
|
||||||
do
|
do
|
||||||
|
|
||||||
echo "_______________________" ${picz}
|
echo _______________________ ${picz}
|
||||||
|
|
||||||
# ../tools/fimgstats -v ${picz}.fimg
|
# ../tools/fimgstats -v ${picz}.fimg
|
||||||
../tools/fimg2pnm ${picz}.fimg ${picz}.pnm
|
../tools/fimg2pnm ${picz}.fimg ${picz}.pnm
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
CMDPATH="/usr/local/bin"
|
CMDPATH="/usr/local/bin"
|
||||||
|
|
||||||
WS="${HOME}/TMP" # our workspace
|
WS="./tmp" # our workspace
|
||||||
|
|
||||||
GRABOPT=" -d /dev/video0 -v -n 240 -p 0.04 "
|
GRABOPT=" -d /dev/video0 -vu -n 240 -p 0.04 "
|
||||||
|
|
||||||
GRAB=${WS}/"quux.fimg"
|
GRAB=${WS}/"quux.fimg"
|
||||||
COS01=${WS}/"cos01.fimg"
|
COS01=${WS}/"cos01.fimg"
|
||||||
@ -15,9 +15,9 @@ POW2="${WS}/pow2.fimg"
|
|||||||
# --------- conversion fimg -> pnm
|
# --------- conversion fimg -> pnm
|
||||||
f2p ()
|
f2p ()
|
||||||
{
|
{
|
||||||
dst=EC_$(basename $1 .fimg).pnm
|
dst=$(basename $1 .fimg).pnm
|
||||||
echo == converting $1 to $dst
|
echo == converting $1 to $dst
|
||||||
${CMDPATH}/fimg2pnm $1 ${WS}/$dst
|
${CMDPATH}/fimg2pnm $1 $dst
|
||||||
}
|
}
|
||||||
|
|
||||||
# --------- capturer une image
|
# --------- capturer une image
|
||||||
@ -43,4 +43,4 @@ f2p $COS010
|
|||||||
# ----------- présentation finale
|
# ----------- présentation finale
|
||||||
#
|
#
|
||||||
echo == Making gif89a
|
echo == Making gif89a
|
||||||
convert -delay 40 ${WS}/EC_*.pnm foo.gif
|
convert -delay 40 *.pnm foo.gif
|
||||||
|
Loading…
Reference in New Issue
Block a user