forked from tTh/FloatImg
tracking a bug...
This commit is contained in:
parent
d0b7ddfd91
commit
b1ae9f31ed
@ -2,7 +2,7 @@
|
|||||||
* floatimg.h
|
* floatimg.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define FIMG_VERSION 91
|
#define FIMG_VERSION 92
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* in memory descriptor
|
* in memory descriptor
|
||||||
|
@ -15,7 +15,7 @@ extern int verbosity; /* must be declared around main() */
|
|||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
int fimg_images_compatible(FloatImg *a, FloatImg *b)
|
int fimg_images_compatible(FloatImg *a, FloatImg *b)
|
||||||
{
|
{
|
||||||
#if DEBUG_LEVEL
|
#if DEBUG_LEVEL > 1
|
||||||
fprintf(stderr, ">>> %s ( %p %p )\n", __func__, a, b);
|
fprintf(stderr, ">>> %s ( %p %p )\n", __func__, a, b);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -41,15 +41,20 @@ int fimg_interpolate(FloatImg *s1, FloatImg *s2, FloatImg *d, float coef)
|
|||||||
{
|
{
|
||||||
int foo;
|
int foo;
|
||||||
|
|
||||||
|
#if DEBUG_LEVEL
|
||||||
|
fprintf(stderr, ">>> %s ( %p %p %p %f )\n", __func__,
|
||||||
|
s1, s2, d, coef);
|
||||||
|
#endif
|
||||||
|
|
||||||
foo = fimg_images_compatible(s1, s2);
|
foo = fimg_images_compatible(s1, s2);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "compat -> %d\n", foo);
|
fprintf(stderr, "compat s1 s2 -> %d\n", foo);
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
|
||||||
foo = fimg_images_compatible(s1, d);
|
foo = fimg_images_compatible(s1, d);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "compat -> %d\n", foo);
|
fprintf(stderr, "compat s1 d -> %d\n", foo);
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,6 +95,7 @@ switch (action) {
|
|||||||
case OP_MAXI:
|
case OP_MAXI:
|
||||||
foo = fimg_minimum(A, B, D); break;
|
foo = fimg_minimum(A, B, D); break;
|
||||||
default:
|
default:
|
||||||
|
fprintf(stderr, "fscking action #%d\n", action);
|
||||||
foo = -99; break;
|
foo = -99; break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user