aboutsummaryrefslogtreecommitdiff
path: root/src/crystfelimageview.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-06-22 16:18:26 +0200
committerThomas White <taw@physics.org>2021-06-22 16:18:43 +0200
commit00d0ba74c8019d6fc0819d4f964edeadc578d2dc (patch)
tree7a7a01aba53a9bc7ba79504855ac53a21a3cbec6 /src/crystfelimageview.c
parent90da6c791b0d3f881067e91684e46a76e0270283 (diff)
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.
Diffstat (limited to 'src/crystfelimageview.c')
-rw-r--r--src/crystfelimageview.c5
1 files 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;
}