From 00d0ba74c8019d6fc0819d4f964edeadc578d2dc Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 22 Jun 2021 16:18:26 +0200 Subject: CrystFELImageView: Adjust threshold for showing box centres I find that starting to show centres at a higher magnification level makes it easier to distinguish the centre markers from bright pixels. --- src/crystfelimageview.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c index 92abaecc..f1cbe877 100644 --- a/src/crystfelimageview.c +++ b/src/crystfelimageview.c @@ -475,10 +475,9 @@ static void draw_refls(cairo_t *cr, p = &iv->image->detgeom->panels[pn]; this_lw = biggest(0.1*p->pixel_pitch, lw); - this_bs = biggest(iv->refl_box_size * p->pixel_pitch, - bs); + this_bs = biggest(iv->refl_box_size * p->pixel_pitch, bs); - if ( this_bs > bs ) { + if ( this_bs > 2.5*bs ) { show_cen = 1; } -- cgit v1.2.3