forked from tTh/FloatImg
is classif ok ?
This commit is contained in:
parent
f034c77401
commit
a3e2cf55fc
@ -898,6 +898,12 @@ sera lisible avec le sélecteur \texttt{-L}.
|
|||||||
\item [Déformations géométriques:] r90
|
\item [Déformations géométriques:] r90
|
||||||
\end{description}
|
\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}
|
\subsection{fimgops}\index{fimgops}\label{fimgops}
|
||||||
|
|
||||||
Quelques opérations diverses entre deux images, qui doivent être
|
Quelques opérations diverses entre deux images, qui doivent être
|
||||||
|
@ -15,7 +15,9 @@ int verbosity;
|
|||||||
float global_fvalue;
|
float global_fvalue;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
/*
|
||||||
|
* nouveau 5 octobre 2020 pendant sonoptic
|
||||||
|
*/
|
||||||
int essai_classif(char *infile)
|
int essai_classif(char *infile)
|
||||||
{
|
{
|
||||||
FloatImg src, dst;
|
FloatImg src, dst;
|
||||||
@ -36,6 +38,8 @@ else {
|
|||||||
|
|
||||||
fimg_clone(&src, &dst, 1);
|
fimg_clone(&src, &dst, 1);
|
||||||
|
|
||||||
|
fprintf(stderr, "%s : fvalue is %f\n", __func__, global_fvalue);
|
||||||
|
|
||||||
foo = fimg_classif_trial(&src, &dst, global_fvalue, 0);
|
foo = fimg_classif_trial(&src, &dst, global_fvalue, 0);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "%s: err %d in classif_trial\n", __func__, foo);
|
fprintf(stderr, "%s: err %d in classif_trial\n", __func__, foo);
|
||||||
@ -550,7 +554,8 @@ command = argv[optind];
|
|||||||
filename = argv[optind+1];
|
filename = argv[optind+1];
|
||||||
|
|
||||||
if (verbosity) {
|
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);
|
fprintf(stderr, "global fvalue : %f\n", global_fvalue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
|
|
||||||
src=foo.fimg
|
src=foo.fimg
|
||||||
maxi=90
|
maxi=111
|
||||||
|
grabopt=" s 640x480 -vv -p 0 -n 400 -c none "
|
||||||
grabvidseq -s 640x480 -vv -p 0 -n 2000 -c cos01 -o $src
|
|
||||||
|
|
||||||
for foo in $(seq 0 $maxi)
|
for foo in $(seq 0 $maxi)
|
||||||
do
|
do
|
||||||
|
|
||||||
|
grabvidseq -$grabopt -o $src
|
||||||
|
|
||||||
fval=$(echo "$foo / $maxi" | bc -l)
|
fval=$(echo "$foo / $maxi" | bc -l)
|
||||||
./t -k $fval -v classif $src
|
./t -k $fval -v classif $src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user