diff --git a/doc/the_floatimg_hack.tex b/doc/the_floatimg_hack.tex index 1be7e06..313bb24 100644 --- a/doc/the_floatimg_hack.tex +++ b/doc/the_floatimg_hack.tex @@ -898,6 +898,12 @@ sera lisible avec le sélecteur \texttt{-L}. \item [Déformations géométriques:] r90 \end{description} +Et pour les aventureux, la commande \texttt{xper} (abréviation +de \textsl{expérimental}) permet de tester la plus récente tentative +de friture du moment. + +% --------------------- + \subsection{fimgops}\index{fimgops}\label{fimgops} Quelques opérations diverses entre deux images, qui doivent être diff --git a/funcs/t.c b/funcs/t.c index 726598f..84fd4a6 100644 --- a/funcs/t.c +++ b/funcs/t.c @@ -15,14 +15,16 @@ int verbosity; float global_fvalue; /* --------------------------------------------------------------------- */ - +/* + * nouveau 5 octobre 2020 pendant sonoptic + */ int essai_classif(char *infile) { FloatImg src, dst; int foo; if (NULL != infile) { - fprintf(stderr, "%s: loading %s\n", __func__, infile); + fprintf(stderr, "%s : loading %s\n", __func__, infile); foo = fimg_create_from_dump(infile, &src); if (foo) { fprintf(stderr, "%s: error loading '%s'\n", __func__, infile); @@ -36,6 +38,8 @@ else { fimg_clone(&src, &dst, 1); +fprintf(stderr, "%s : fvalue is %f\n", __func__, global_fvalue); + foo = fimg_classif_trial(&src, &dst, global_fvalue, 0); if (foo) { fprintf(stderr, "%s: err %d in classif_trial\n", __func__, foo); @@ -550,7 +554,8 @@ command = argv[optind]; filename = argv[optind+1]; if (verbosity) { - fprintf(stderr, "running command '%s' on '%s'\n", command, filename); + fprintf(stderr, "%s : running command '%s' on '%s'\n", + argv[0], command, filename); fprintf(stderr, "global fvalue : %f\n", global_fvalue); } diff --git a/funcs/vroum.sh b/funcs/vroum.sh index de3f91d..b8ffeb2 100755 --- a/funcs/vroum.sh +++ b/funcs/vroum.sh @@ -2,13 +2,14 @@ src=foo.fimg -maxi=90 - -grabvidseq -s 640x480 -vv -p 0 -n 2000 -c cos01 -o $src +maxi=111 +grabopt=" s 640x480 -vv -p 0 -n 400 -c none " for foo in $(seq 0 $maxi) do + grabvidseq -$grabopt -o $src + fval=$(echo "$foo / $maxi" | bc -l) ./t -k $fval -v classif $src