else
dt *= 16;
dist[n++] = (dt << 8) + i + (j << 4);
-#ifdef CONFIG_EXPLAIN
+#ifdef CONFIG_EXPLAIN
MSG("[%u, %u] dt=%u ds=%u df=(%d", i, j, dt, ds, (int)reg1->f[0] - (int)reg2->f[0]);
for (uns i = 1; i < IMAGE_VEC_F; i++)
MSG(" %d", (int)reg1->f[i] - (int)reg2->f[i]);
image_sig_cmp_features_weights[4] * isqr((int)reg1->f[4] - (int)reg2->f[4]) +
image_sig_cmp_features_weights[5] * isqr((int)reg1->f[5] - (int)reg2->f[5]);
dist[n++] = (dt << 12) + i + (j << 4);
-#ifdef CONFIG_EXPLAIN
+#ifdef CONFIG_EXPLAIN
MSG("[%u, %u] dt=%u df=(%d", i, j, dt, (int)reg1->f[0] - (int)reg2->f[0]);
for (uns i = 1; i < IMAGE_VEC_F; i++)
MSG(" %d", (int)reg1->f[i] - (int)reg2->f[i]);
}
l -= s;
sum += s * d;
- MSGL("[%u, %u] s=%u d=%u", i, j, s, d);
+#ifdef CONFIG_EXPLAIN
+ MSG("[%u, %u] d=%u d=%u df=(%d", i, j, s, d, (int)reg1->f[0] - (int)reg2->f[0]);
+ for (uns i = 1; i < IMAGE_VEC_F; i++)
+ MSG(" %d", (int)reg1->f[i] - (int)reg2->f[i]);
+ if (!((sig1->flags | sig2->flags) & IMAGE_SIG_TEXTURED))
+ {
+ MSG(") dh=(%d", (int)reg1->h[0] - (int)reg2->h[0]);
+ for (uns i = 1; i < IMAGE_REG_H; i++)
+ MSG(" %d", (int)reg1->h[i] - (int)reg2->h[i]);
+ }
+ MSGL(")");
+#endif
}
return sum;
MSG("%.4f", (double)lf[i] / 0x10000);
}
MSGL(")");
+ MSG("Lh=(");
for (uns i = 0; i < cnt1 + cnt2; i++)
{
if (i)