From 7446bd579c2b4d1284dddfe6d9681c2370ef6d23 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 17 Jun 2014 15:33:35 +0200 Subject: Check axis lengths as well --- src/whirligig.c | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'src/whirligig.c') diff --git a/src/whirligig.c b/src/whirligig.c index 2d36839b..9d72f415 100644 --- a/src/whirligig.c +++ b/src/whirligig.c @@ -48,10 +48,35 @@ #include "integer_matrix.h" +static RefList *transform_reflections(RefList *in, IntegerMatrix *m) +{ +} + + static void process_series(struct image *images, signed int *ser, IntegerMatrix **mat, int len) { -// STATUS("Found a rotation series of %i views\n", len); + int i; + RefList *list; + + printf("\n"); + STATUS("Found a rotation series of %i views\n", len); + + for ( i=0; i atl ) return 0; if ( angle_between(csx1, csy1, csz1, csx2, csy2, csz2) > atl ) return 0; - /* FIXME: Moduli need to be similar as well */ + if ( moduli_check(asx1, asy1, asz1, asx2, asy2, asz2) > ltl ) return 0; + if ( moduli_check(bsx1, bsy1, bsz1, bsx2, bsy2, bsz2) > atl ) return 0; + if ( moduli_check(csx1, csy1, csz1, csx2, csy2, csz2) > atl ) return 0; return 1; } -- cgit v1.2.3