From a04878fec9a9e76bf6266bc4b4bdfadb77b90441 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 30 Sep 2010 14:09:17 +0200 Subject: Remove duplicated functionality of map_position() and get_q() --- src/peaks.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/peaks.c') diff --git a/src/peaks.c b/src/peaks.c index b0a905eb..0d35c930 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -429,14 +429,15 @@ void dump_peaks(struct image *image, pthread_mutex_t *mutex) for ( i=0; ifeatures); i++ ) { - double q, rx, ry, rz; struct imagefeature *f; + struct rvec r; + double q; f = image_get_feature(image->features, i); if ( f == NULL ) continue; - map_position(image, f->x, f->y, &rx, &ry, &rz); - q = modulus(rx, ry, rz); + r = get_q(image, f->x, f->y, 1, NULL, 1.0/image->lambda); + q = modulus(r.u, r.v, r.w); printf("%8.3f %8.3f %8.3f %12.3f\n", f->x, f->y, q/1.0e9, f->intensity); -- cgit v1.2.3