Compare commits

..

No commits in common. "fdcc0781eb6f1149624ab3867a98efa2775b9427" and "2a2bc51e70052b03e9c896ac06925362a002f512" have entirely different histories.

4 changed files with 5 additions and 23 deletions

View File

@ -9,8 +9,8 @@ FILTRES=$(./t -L | awk 'NR>1 { print $1 }' | sort)
rm /tmp/fstack*.png rm /tmp/fstack*.png
SRC=$(ls -rt1 $HOME/Essais/FondageDePlomb/capture/* | tail -1) # SRC=$(ls -rt1 $HOME/Essais/FondageDePlomb/capture/* | tail -1)
# SRC=mire.fimg SRC=mire.fimg
for F in $FILTRES for F in $FILTRES
do do

View File

@ -16,14 +16,14 @@ int x, y, xe, ye;
int off; int off;
double accus[3], divisor; double accus[3], divisor;
xe = geom[0] + geom[2];
ye = geom[1] + geom[3];
#if DEBUG_LEVEL #if DEBUG_LEVEL
fprintf(stdout, "geom: %5d %5d %5d %5d\n", fprintf(stdout, "geom: %5d %5d %5d %5d\n",
geom[0], geom[1], geom[2], geom[3]); geom[0], geom[1], geom[2], geom[3]);
#endif #endif
xe = geom[0] + geom[2];
ye = geom[1] + geom[3];
accus[0] = accus[1] = accus[2] = 0.0; accus[0] = accus[1] = accus[2] = 0.0;
for (y=geom[1]; y<ye; y++) { for (y=geom[1]; y<ye; y++) {
for (x=geom[0]; x<xe; x++) { for (x=geom[0]; x<xe; x++) {

View File

@ -166,13 +166,6 @@ if (foo) {
exit(1); exit(1);
} }
if (verbosity) {
fprintf(stderr, "input glob %s\n", globbing);
fprintf(stderr, "filter chain %s\n", filterchain);
fprintf(stderr, "ourput dir %s\n", outdir);
fprintf(stderr, "do xper %d\n", do_xper);
}
foo = run_the_singlepass(globbing, outdir, FILTERS); foo = run_the_singlepass(globbing, outdir, FILTERS);
fprintf(stderr, "\n\tRun the single pass --> %d\n", foo); fprintf(stderr, "\n\tRun the single pass --> %d\n", foo);

View File

@ -71,14 +71,10 @@ return 0;
} }
/* -------------------------------------------------------------- */ /* -------------------------------------------------------------- */
/*
* I think that this function is fully buggy
*/
int fimg_auto_shift_to_zero(FloatImg *src, FloatImg *dst) int fimg_auto_shift_to_zero(FloatImg *src, FloatImg *dst)
{ {
float coefs[6]; float coefs[6];
int foo; int foo;
float minima = 1e7; /* magic value ? */
if (FIMG_TYPE_RGB != src->type) { if (FIMG_TYPE_RGB != src->type) {
fprintf(stderr, "%s: bad image type %d\n", __func__, src->type); fprintf(stderr, "%s: bad image type %d\n", __func__, src->type);
@ -91,13 +87,6 @@ if (foo) {
return foo; return foo;
} }
/* crude hack for now */
if (coefs[0] < minima) minima = coefs[0];
if (coefs[2] < minima) minima = coefs[2];
if (coefs[4] < minima) minima = coefs[4];
coefs[0] = coefs[2] = coefs[4] = minima;
foo = fimg_shift_to_zero(src, dst, coefs); foo = fimg_shift_to_zero(src, dst, coefs);
if (foo) { if (foo) {
fprintf(stderr, "%s WTF?\n", __func__); fprintf(stderr, "%s WTF?\n", __func__);