From 2d2ffad9db671a27841b4fefa82c2efec1904d54 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 8 Jan 2010 18:23:25 +0100 Subject: Bug fixes --- src/indexamajig.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/indexamajig.c') diff --git a/src/indexamajig.c b/src/indexamajig.c index f5474de6..1ff6d2e6 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -76,7 +76,7 @@ static int image_fom(struct image *image) mean = (float)integr / n; /* As integer to keep maths fast */ /* Standard deviation */ - integr = 0; + fintegr = 0; for ( x=0; x<1024; x++ ) { for ( y=600; y<1024; y++ ) { @@ -123,7 +123,7 @@ static int image_fom(struct image *image) do { - int max, max_i; + int max, max_i = -1; int adjacent; n_nearby = 0; @@ -256,6 +256,8 @@ int main(int argc, char *argv[]) if ( rval == NULL ) continue; chomp(line); + image.features = NULL; + STATUS("Processing '%s'\n", line); hdfile = hdfile_open(line); -- cgit v1.2.3