libcrystfel 0.11.1
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
peaks.h File Reference

Data Structures

struct  peak_params
 

Enumerations

enum  peak_search_method {
  PEAK_PEAKFINDER9 ,
  PEAK_PEAKFINDER8 ,
  PEAK_ZAEF ,
  PEAK_HDF5 ,
  PEAK_CXI ,
  PEAK_MSGPACK ,
  PEAK_NONE ,
  PEAK_ERROR
}
 

Functions

const char * str_peaksearch (enum peak_search_method meth)
 
enum peak_search_method parse_peaksearch (const char *arg)
 
int * make_BgMask (struct image *image, struct detgeom_panel *p, int pn, double ir_inn)
 
ImageFeatureListsearch_peaks (const struct image *image, float threshold, float min_gradient, float min_snr, double ir_inn, double ir_mid, double ir_out, int use_saturated)
 
ImageFeatureListsearch_peaks_peakfinder9 (const struct image *image, float min_snr_biggest_pix, float min_snr_peak_pix, float min_snr_whole_peak, float min_sig, float min_peak_over_neighbour, int window_radius)
 
int indexing_peak_check (const struct image *image, ImageFeatureList *peaks, Crystal **crystals, int n_cryst, int multi_mode)
 
ImageFeatureListvalidate_peaks (const struct image *image, ImageFeatureList *peaks, double min_snr, int ir_inn, int ir_mid, int ir_out, int use_saturated, int check_snr)
 
double estimate_peak_resolution (ImageFeatureList *peaks, double lambda, struct detgeom *det)
 

Detailed Description

Peak search functions

Function Documentation

◆ indexing_peak_check()

int indexing_peak_check ( const struct image * image,
ImageFeatureList * peaks,
Crystal ** crystals,
int n_cryst,
int multi_mode )
extern
Parameters
imageAn image structure
peaksAn ImageFeatureList
crystalsPointer to array of pointers to crystals
n_crystThe number of crystals
multi_modeWhether the thresholds should be set for multi-lattice indexing

Checks whether the peaks in peaks appear to be explained by the crystals provided.

Returns 1 if the peaks appear to be well-explained by the crystals. Otherwise, if the indexing solutions appear to be "bad", returns 0.