diff options
author | Thomas White <taw@physics.org> | 2020-05-27 16:38:32 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | 17fc522b88a8eb425ff094077f8c9d5463647993 (patch) | |
tree | b21a8a2b3714cbe2866d4eb3b0a9fd7c86b35845 /libcrystfel/src/image.c | |
parent | b2f451cf78d83d6de8a455b191636dc85f7de1cb (diff) |
Remove image_reflection_closest
Not used anywhere!
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r-- | libcrystfel/src/image.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index 8b73e414..8cfe3473 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -186,49 +186,6 @@ struct imagefeature *image_feature_closest(ImageFeatureList *flist, } -Reflection *image_reflection_closest(RefList *rlist, - double fs, double ss, struct panel *p, - struct detector *det, - double *d) -{ - - double dmin = HUGE_VAL; - Reflection *closest = NULL; - Reflection *refl; - RefListIterator *iter; - - for ( refl = first_refl(rlist, &iter); - refl != NULL; - refl = next_refl(refl, iter) ) - { - double ds; - struct panel *p2; - double rfs, rss; - - get_detector_pos(refl, &rfs, &rss); - p2 = get_panel(refl); - - if ( p != p2 ) continue; - - ds = distance(rfs, rss, fs, ss); - - if ( ds < dmin ) { - dmin = ds; - closest = refl; - } - - } - - if ( dmin < +HUGE_VAL ) { - *d = dmin; - return closest; - } - - *d = +INFINITY; - return NULL; -} - - int image_feature_count(ImageFeatureList *flist) { if ( flist == NULL ) return 0; |