| CrystFEL Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include "detector.h" struct detector * copy_geom (const struct detector *in); void fill_in_values (struct detector *det,struct hdfile *f); void free_detector_geometry (struct detector *det); struct detector * get_detector_geometry (const char *filename); int write_detector_geometry (const char *filename,struct detector *det); struct panel * find_panel (struct detector *det,double fs,double ss); struct panel * find_panel_by_name (struct detector *det,const char *name); signed int find_panel_number (struct detector *det,double fs,double ss); struct detector * simple_geometry (const struct image *image); void record_image (struct image *image,int do_poisson,int background,gsl_rng *rng); void get_pixel_extents (struct detector *det,double *min_x,double *min_y,double *max_x,double *max_y); struct rvec get_q (struct image *image,double fs,double ss,double *ttp,double k); struct rvec get_q_for_panel (struct panel *p,double fs,double ss,double *ttp,double k); double get_tt (struct image *image,double xs,double ys,int *err); double smallest_q (struct image *image); void twod_mapping (double fs,double ss,double *px,double *py,struct panel *p); int reverse_2d_mapping (double x,double y,double *pfs,double *pss,struct detector *det); double largest_q (struct image *image); int in_bad_region (struct detector *det,double fs,double ss); void mark_resolution_range_as_bad (struct image *image,double min,double max);
int write_detector_geometry (const char *filename,struct detector *det);
void record_image (struct image *image,int do_poisson,int background,gsl_rng *rng);
void get_pixel_extents (struct detector *det,double *min_x,double *min_y,double *max_x,double *max_y);
struct rvec get_q_for_panel (struct panel *p,double fs,double ss,double *ttp,double k);
int reverse_2d_mapping (double x,double y,double *pfs,double *pss,struct detector *det);
void mark_resolution_range_as_bad (struct image *image,double min,double max);
Flags, in the bad pixel mask for image, every pixel whose resolution is
between min and max.
|
An image structure |
|
Minimum value of 1/d to be marked as bad |
|
Maximum value of 1/d to be marked as bad |