From 10f4d845158e331da7b2174394c0c6190018e16c Mon Sep 17 00:00:00 2001 From: taw27 Date: Fri, 23 Nov 2007 11:37:39 +0000 Subject: Finish previous commit.. git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@206 bf6ca9ba-c028-0410-8290-897cf20841d1 --- src/reproject.c | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) (limited to 'src/reproject.c') diff --git a/src/reproject.c b/src/reproject.c index 9efe965..3768a5e 100644 --- a/src/reproject.c +++ b/src/reproject.c @@ -18,7 +18,28 @@ #include "imagedisplay.h" #include "displaywindow.h" #include "image.h" -#include "reproject.h" + +/* Attempt to find partners from the feature list of "image" for each feature in "flist". */ +void reproject_partner_features(ImageFeatureList *flist, ImageRecord *image) { + + int i; + + for ( i=0; in_features; i++ ) { + + double d = 0.0; + ImageFeature *partner; + int idx; + + partner = image_feature_closest(image->features, flist->features[i].x, flist->features[i].y, &d, &idx); + + if ( (d <= 20.0) && partner ) { + flist->features[i].partner = partner; + flist->features[i].partner_d = d; + } + + } + +} ImageFeatureList *reproject_get_reflections(ImageRecord *image, ReflectionList *reflectionlist) { @@ -181,28 +202,6 @@ ImageFeatureList *reproject_get_reflections(ImageRecord *image, ReflectionList * } -/* Attempt to find partners from the feature list of "image" for each feature in "flist". */ -void reproject_partner_features(ImageFeatureList *flist, ImageRecord *image) { - - int i; - - for ( i=0; in_features; i++ ) { - - double d = 0.0; - ImageFeature *partner; - int idx; - - partner = image_feature_closest(image->features, flist->features[i].x, flist->features[i].y, &d, &idx); - - if ( (d <= 20.0) && partner ) { - flist->features[i].partner = partner; - flist->features[i].partner_d = d; - } - - } - -} - static void reproject_mark_peaks(ControlContext *ctx) { ImageFeatureList *flist; -- cgit v1.2.3