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 | ||||
| \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 | ||||
|  | ||||
							
								
								
									
										11
									
								
								funcs/t.c
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								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); | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
| @ -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 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user