From a32dd2798be8231b6af9d4121ba22ed8603e2491 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Mon, 18 Sep 2006 08:41:02 +0200 Subject: [PATCH] bufgix in image comparision --- images/sig-cmp-gen.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/sig-cmp-gen.h b/images/sig-cmp-gen.h index e488734a..5a391db0 100644 --- a/images/sig-cmp-gen.h +++ b/images/sig-cmp-gen.h @@ -70,7 +70,7 @@ image_signatures_dist_integrated_explain(struct image_signature *sig1, struct im dt += image_sig_cmp_features_weights[i] * isqr((int)reg1->f[i] - (int)reg2->f[i]); for (uns i = 0; i < 3; i++) ds += image_sig_cmp_features_weights[IMAGE_VEC_F + i] * isqr((int)reg1->h[i] - (int)reg2->h[i]); - for (uns i = 3; i < 4; i++) + for (uns i = 3; i < 5; i++) dp += image_sig_cmp_features_weights[IMAGE_VEC_F + i] * isqr((int)reg1->h[i] - (int)reg2->h[i]); #if 0 int x1, y1, x2, y2; @@ -107,7 +107,7 @@ image_signatures_dist_integrated_explain(struct image_signature *sig1, struct im d = dt; if (ds < 1000) d = d * 4; - else if (ds < 3000) + else if (ds < 4000) d = d * 6 + 8; else if (ds < 10000) d = d * 8 + 20; -- 2.39.2