From f034c77401fd1cdd1f698dc7421b38337ed2b42e Mon Sep 17 00:00:00 2001 From: tth Date: Tue, 6 Oct 2020 13:01:48 +0200 Subject: [PATCH] vroum testing in progress --- funcs/vroum.sh | 24 ++++++++++++++++++++++++ tools/fimgfx.c | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 funcs/vroum.sh diff --git a/funcs/vroum.sh b/funcs/vroum.sh new file mode 100755 index 00000000..de3f91d4 --- /dev/null +++ b/funcs/vroum.sh @@ -0,0 +1,24 @@ +#!/bin/bash + + +src=foo.fimg +maxi=90 + +grabvidseq -s 640x480 -vv -p 0 -n 2000 -c cos01 -o $src + +for foo in $(seq 0 $maxi) +do + + fval=$(echo "$foo / $maxi" | bc -l) + ./t -k $fval -v classif $src + + echo $foo $fval + + nom=$(printf "v_%03d.pnm" $foo) + cp out.pnm $nom + + echo $nom + +done + +convert -delay 10 v_*.pnm foo.gif diff --git a/tools/fimgfx.c b/tools/fimgfx.c index 66027d3c..976f5466 100644 --- a/tools/fimgfx.c +++ b/tools/fimgfx.c @@ -77,7 +77,7 @@ if (foo) { return -98; } -foo = fimg_classif_trial(S, D, 0); +foo = fimg_classif_trial(S, D, kf, 0); if (foo) { fprintf(stderr, "%s err %d classif_trial %p\n", __func__, foo, S);