aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/datatemplate_priv.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-01-14 17:08:25 +0100
committerThomas White <taw@physics.org>2021-01-14 17:09:35 +0100
commit7fb94888dc081749e004aeef9b2742909e1cbc8e (patch)
treee6be5cd7e784859b5bef86c1c0db3304a32fa7f3 /libcrystfel/src/datatemplate_priv.h
parent0adf5fd72e96e5772288088cac71451a5f898c2e (diff)
Avoid very slow loop over pixels to create bad pixel map
Bad regions specified in terms of x/y still require an iteration over all pixels of the detector, but I don't see an easy way around that. Avoiding x/y bad regions will give best performance.
Diffstat (limited to 'libcrystfel/src/datatemplate_priv.h')
-rw-r--r--libcrystfel/src/datatemplate_priv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcrystfel/src/datatemplate_priv.h b/libcrystfel/src/datatemplate_priv.h
index c980b53a..f88a6ad0 100644
--- a/libcrystfel/src/datatemplate_priv.h
+++ b/libcrystfel/src/datatemplate_priv.h
@@ -171,14 +171,15 @@ struct dt_badregion
{
char name[1024];
int is_fsss;
- char *panel;
double min_x;
double max_x;
double min_y;
double max_y;
- /* Specified INCLUSIVELY */
+ /* Coordinates are specified INCLUSIVELY */
+ int panel_number;
+ char *panel_name;
int min_fs;
int max_fs;
int min_ss;