mantidimaging.core.operations.monitor_normalisation.monitor_normalisation module#

class mantidimaging.core.operations.monitor_normalisation.monitor_normalisation.MonitorNormalisation[source]#

Bases: BaseFilter

Normalises the image data using the average count of a beam monitor from the experiment log file. This scaling operation is an alternative to ROI normalisation and allows to account for beam fluctuations and different exposure times of projections.

Intended to be used on: Projections

When: As a pre-processing step to normalise the grey value ranges of the data.

allow_for_180_projection = False#
static compute_function(i: int, array: ndarray, params: dict[str, ndarray])[source]#
static execute_wrapper(*args) partial[source]#

Should construct a partial call to _filter_func using values taken from the widgets passed to this function as kwargs. :param kwargs: widgets which contain values required for _filter_func. :return: a partial call to _filter_func using parameters taken from the input widgets.

static filter_func(images: ImageStack, progress=None) ImageStack[source]#
Returns:

The ImageStack object which has been normalised.

filter_name = 'Monitor Normalisation'#
static register_gui(form: QFormLayout, on_change: Callable, view: BaseMainWindowView) dict[str, QWidget][source]#

Adds any required input widgets to the given form and returns references to them.

The return values should be in a dict which can be unpacked as kwargs for a call to the operations execute_wrapper.

Parameters:
  • view

  • form – the layout to create input widgets in

  • on_change – the filter view action to be bound to all created inputs

Returns:

the widgets bound as kwargs which are needed to call execute_wrapper

static validate_execute_kwargs(kwargs: dict[str, Any]) bool[source]#