aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-08 18:23:25 +0100
committerThomas White <taw@physics.org>2010-01-08 18:23:25 +0100
commit2d2ffad9db671a27841b4fefa82c2efec1904d54 (patch)
tree242d0d834b752b53527599abbd6048769f9b6342 /src
parentbf78e7651ce298b5115d07c2efea5d9af3e8966f (diff)
Bug fixes
Diffstat (limited to 'src')
-rw-r--r--src/indexamajig.c6
1 files changed, 4 insertions, 2 deletions
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);