Compare commits

..

No commits in common. "31ba65f01d68c872b06f4f14f76ce917867a0f3d" and "ce02cf96bc8b597de2aca29fee2473a113a0bb55" have entirely different histories.

7 changed files with 11 additions and 68 deletions

View File

@ -6,7 +6,7 @@ OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
fimg-libpnm.o rampes.o sfx0.o geometry.o rotate.o \ fimg-libpnm.o rampes.o sfx0.o geometry.o rotate.o \
equalize.o fimg-fits.o saturation.o histogram.o \ equalize.o fimg-fits.o saturation.o histogram.o \
hsv.o classif.o contour2x2.o qsortrgb.o exporter.o \ hsv.o classif.o contour2x2.o qsortrgb.o exporter.o \
displacement.o dithering.o displacement.o
#--------------------------------------------------------------- #---------------------------------------------------------------
@ -56,10 +56,6 @@ histogram.o: histogram.c $(DEPS)
equalize.o: equalize.c $(DEPS) equalize.o: equalize.c $(DEPS)
gcc $(COPT) -c $< gcc $(COPT) -c $<
dithering.o: dithering.c $(DEPS)
gcc $(COPT) -c $<
sfx0.o: sfx0.c $(DEPS) sfx0.o: sfx0.c $(DEPS)
gcc $(COPT) -c $< gcc $(COPT) -c $<

View File

@ -1,20 +0,0 @@
# Fonctions
Plein de fonctions qu'il serait bon de documenter :)
## Contours
Détecter des contours est une activité respectable.
## Exporter
Une méta-fonction qui va sauvegarder (dans la mesure de ses conséquences)
une image en fonction de l'extension du nom de fichier.
## Sfx
Effets spéciaux divers.
## Dithering
Work in progress...

View File

@ -49,7 +49,7 @@ else {
} }
foo = fimg_meanvalues(psrc, avg); foo = fimg_meanvalues(psrc, avg);
if (verbosity > 1) { if (verbosity) {
fprintf(stderr, "mean values : %f %f %f\n", avg[0], avg[1], avg[2]); fprintf(stderr, "mean values : %f %f %f\n", avg[0], avg[1], avg[2]);
} }

View File

@ -73,11 +73,15 @@ for (y=0; y<psrc->height; y++) {
rgb[1] = rgb[2] = rgb[0]; rgb[1] = rgb[2] = rgb[0];
} }
fimg_put_rgb(pdst, dstx, dsty, rgb); fimg_put_rgb(pdst, dstx, dsty, rgb);
// fprintf(stderr, "%5d %5d %f\n", dstx, dsty, rgb[1]);
in++; in++;
} }
} }
if (verbosity > 2) {
fprintf(stderr, "%4d / %4d\n", y, psrc->height);
}
} }
if (verbosity) fprintf(stderr, "%s -> in %d out %d\n", __func__, in, out); if (verbosity) fprintf(stderr, "%s -> in %d out %d\n", __func__, in, out);

View File

@ -1,31 +0,0 @@
/*
* FloatImg : some dithering experiments
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "../floatimg.h"
extern int verbosity;
/* --------------------------------------------------------------------- */
int fimg_dither_0(FloatImg *psrc, FloatImg *pdst, int flags)
{
int x, y;
for (y=0; y<psrc->height; y++) {
for (x=0; x<psrc->width; x++)
{
}
}
return -1;
}
/* --------------------------------------------------------------------- */

View File

@ -82,8 +82,6 @@ if (foo) {
return foo; return foo;
} }
fimg_destroy(&src); fimg_destroy(&dst);
return 0; return 0;
} }
@ -124,8 +122,6 @@ if (foo) {
return foo; return foo;
} }
fimg_destroy(&src); fimg_destroy(&dst);
return 0; return 0;
} }
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
@ -166,8 +162,6 @@ if (foo) {
return foo; return foo;
} }
fimg_destroy(&src); fimg_destroy(&dst);
return 0; return 0;
} }
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */

View File

@ -3,10 +3,10 @@
src=/dev/shm/foo.fimg src=/dev/shm/foo.fimg
out=out.fimg out=out.fimg
maxi=249 maxi=49
W="320" W="640"
H="240" H="480"
grabopt=" -s ${W}x${H}w -vv -p 0 -n 60 -c none " grabopt=" -s 640x480 -vv -p 0 -n 500 -c cos01 "
mkdir /tmp/V mkdir /tmp/V
@ -20,7 +20,7 @@ do
grabvidseq -$grabopt -o $src grabvidseq -$grabopt -o $src
fval=$(echo "$foo / $maxi" | bc -l) fval=$(echo "$foo / $maxi" | bc -l)
./t -vv -k 0.333 -o $out classif $src ./t -vv -k 0.333 -o $out displace $src
# fimgstats $out # fimgstats $out