Extensions¶
Table of Contents
- class dials.extensions.simple_background_ext.SimpleBackgroundExt(params, experiments)[source]¶
Bases:
object
An extension class implementing simple background subtraction.
- __init__(params, experiments)[source]¶
Initialise the algorithm.
- Parameters
params – The input parameters
experiments – The list of experiments
- compute_background(reflections, image_volume=None)[source]¶
Compute the background.
- Parameters
reflections – The list of reflections
- name = 'simple'¶
- class dials.extensions.null_background_ext.NullBackgroundExt(params, experiments)[source]¶
Bases:
object
An extension class implementing Null background subtraction.
- __init__(params, experiments)[source]¶
Initialise the algorithm.
- Parameters
params – The input phil parameters
experiments – The experiment list
- compute_background(reflections, image_volume=None)[source]¶
Compute the background.
- Parameters
reflections – The list of reflections
- name = 'null'¶
- class dials.extensions.dispersion_spotfinder_threshold_ext.DispersionSpotFinderThresholdExt(params)[source]¶
Bases:
object
Extensions to do dispersion threshold.
- compute_threshold(image, mask)[source]¶
Compute the threshold.
- Parameters
image – The image to process
mask – The pixel mask on the image
- Returns
A boolean mask showing foreground/background pixels
- name = 'dispersion'¶
- dials.extensions.dispersion_spotfinder_threshold_ext.estimate_global_threshold(image, mask=None, plot=False)[source]¶
- class dials.extensions.simple_centroid_ext.SimpleCentroidExt(params, experiments)[source]¶
Bases:
object
An extension class implementing a simple centroid algorithm.
- __init__(params, experiments)[source]¶
Initialise the algorithm.
- Parameters
params – The input phil parameters
experiments – The experiment list
- compute_centroid(reflections, image_volume=None)[source]¶
Compute the centroid.
- Parameters
reflections – The list of reflections
- default = True¶
- name = 'simple'¶