libcrystfel  0.10.1
Macros | Enumerations | Functions
integration.h File Reference

Macros

#define INTEGRATION_DEFAULTS_RINGS   (INTEGRATION_RINGS)
 
#define INTEGRATION_DEFAULTS_PROF2D   (INTEGRATION_PROF2D | INTEGRATION_CENTER)
 
#define INTEGRATION_METHOD_MASK   (0xff)
 

Enumerations

enum  IntDiag {
  INTDIAG_NONE,
  INTDIAG_RANDOM,
  INTDIAG_ALL,
  INTDIAG_INDICES,
  INTDIAG_NEGATIVE,
  INTDIAG_IMPLAUSIBLE,
  INTDIAG_STRONG
}
 
enum  IntegrationMethod {
  INTEGRATION_NONE = 0,
  INTEGRATION_RINGS = 1,
  INTEGRATION_PROF2D = 2,
  INTEGRATION_SATURATED = 256,
  INTEGRATION_CENTER = 512,
  INTEGRATION_GRADIENTBG = 2048
}
 

Functions

IntegrationMethod integration_method (const char *t, int *err)
 
char * str_integration_method (IntegrationMethod m)
 
struct intcontext * intcontext_new (struct image *image, UnitCell *cell, IntegrationMethod meth, int ir_inn, int ir_mid, int ir_out, int **masks)
 
int integrate_rings_once (Reflection *refl, struct intcontext *ic, pthread_mutex_t *term_lock)
 
void intcontext_free (struct intcontext *ic)
 
void integrate_all (struct image *image, IntegrationMethod meth, double ir_inn, double ir_mid, double ir_out, IntDiag int_diag, signed int idh, signed int idk, signed int idl)
 
void integrate_all_2 (struct image *image, IntegrationMethod meth, double push_res, double ir_inn, double ir_mid, double ir_out, IntDiag int_diag, signed int idh, signed int idk, signed int idl)
 
void integrate_all_3 (struct image *image, IntegrationMethod meth, PartialityModel pmodel, double push_res, double ir_inn, double ir_mid, double ir_out, IntDiag int_diag, signed int idh, signed int idk, signed int idl)
 
void integrate_all_4 (struct image *image, IntegrationMethod meth, PartialityModel pmodel, double push_res, double ir_inn, double ir_mid, double ir_out, IntDiag int_diag, signed int idh, signed int idk, signed int idl, pthread_mutex_t *term_lock)
 
void integrate_all_5 (struct image *image, IntegrationMethod meth, PartialityModel pmodel, double push_res, double ir_inn, double ir_mid, double ir_out, IntDiag int_diag, signed int idh, signed int idk, signed int idl, pthread_mutex_t *term_lock, int overpredict)
 

Detailed Description

Integration of reflections

Macro Definition Documentation

◆ INTEGRATION_METHOD_MASK

#define INTEGRATION_METHOD_MASK   (0xff)

This defines the bits in IntegrationMethod which are used to represent the core of the integration method.

Enumeration Type Documentation

◆ IntDiag

enum IntDiag

An IntDiag describes the condition under which the integration subsystem should display diagnostic information to the user.

Enumerator
INTDIAG_NONE 

Never show diagnostics

INTDIAG_RANDOM 

Show diagnostics for a randomly selected 1% of reflections

INTDIAG_ALL 

Show diagnostics for all reflections

INTDIAG_INDICES 

Show diagnostics when the Miller indices of the reflection are the ones specified

INTDIAG_NEGATIVE 

Show diagnostics when the measured intensity is less than minus three times its estimated error.

INTDIAG_IMPLAUSIBLE 

Show diagnostics when the measured intensity is less than minus five times its estimated error.

INTDIAG_STRONG 

Show diagnostics when the measured intensity is more than three times its estimated error.

◆ IntegrationMethod

An enumeration of all the available integration methods. The first items are the actual integration methods. The later ones are flags which can be ORed with the method to affect its behaviour.

Enumerator
INTEGRATION_NONE 

No integration at all

INTEGRATION_RINGS 

Summation of pixel values inside ring, minus background

INTEGRATION_PROF2D 

Two dimensional profile fitting

INTEGRATION_SATURATED 

Integrate saturated reflections

INTEGRATION_CENTER 

Center the peak in the box prior to integration

INTEGRATION_GRADIENTBG 

Fit a gradient to the background