aboutsummaryrefslogtreecommitdiff
path: root/src/detector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/detector.h')
-rw-r--r--src/detector.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/detector.h b/src/detector.h
index 703c79ae..e9b2112f 100644
--- a/src/detector.h
+++ b/src/detector.h
@@ -17,22 +17,26 @@
#define DETECTOR_H
struct image;
+struct hdfile;
+#include "hdf5-file.h"
#include "image.h"
+
struct panel
{
int min_fs; /* Smallest FS value considered to be in the panel */
int max_fs; /* Largest FS value considered to be in this panel */
int min_ss; /* ... and so on */
int max_ss;
- float cx; /* Location of corner (min_fs,min_ss) in pixels */
- float cy;
- float clen; /* Camera length in metres */
- float res; /* Resolution in pixels per metre */
+ double cx; /* Location of corner (min_fs,min_ss) in pixels */
+ double cy;
+ double clen; /* Camera length in metres */
+ char *clen_from;
+ double res; /* Resolution in pixels per metre */
char badrow; /* 'x' or 'y' */
int no_index; /* Don't index peaks in this panel if non-zero */
- float peak_sep; /* Characteristic peak separation */
+ double peak_sep; /* Characteristic peak separation */
signed int fsx;
signed int fsy;
@@ -58,11 +62,16 @@ extern void record_image(struct image *image, int do_poisson);
extern struct panel *find_panel(struct detector *det, int x, int y);
extern struct detector *get_detector_geometry(const char *filename);
+
extern void free_detector_geometry(struct detector *det);
extern struct detector *simple_geometry(const struct image *image);
+
extern void get_pixel_extents(struct detector *det,
double *min_x, double *min_y,
double *max_x, double *max_y);
+extern void fill_in_values(struct detector *det, struct hdfile *f);
+
+
#endif /* DETECTOR_H */