mantidimaging.core.operations.remove_large_stripe.remove_large_stripe module¶
- class mantidimaging.core.operations.remove_large_stripe.remove_large_stripe.RemoveLargeStripesFilter[source]¶
Bases:
BaseFilter
Stripe and ring artifact removal: Algorithm 5 in Vo et al., Optics Express 28396 (2018). Remove large stripes by: locating stripes, normalizing them to remove full stripes, using the sorting technique to remove partial stripes.
Source: https://github.com/algotom/algotom
Intended to be used on: Sinograms When: If stripes artifacts are present that have not been removed with outliers + flat-fielding the projections
Caution: Horizontal stripes caused by changes in image intensity (pixel values) should be fixed by ROI Normalisation instead!
- static execute_wrapper(snr: QDoubleSpinBox, la_size: QSpinBox)[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, snr=3, la_size=61, cores=None, chunksize=None, progress=None)[source]¶
Executes the filter algorithm on a given set of image data with the given parameters.
- Parameters:
data – the image data to apply the filter to
kwargs – any additional arguments which the specific filter uses
- Returns:
the image data after applying the filter
- filter_name = 'Remove large stripes'¶
- static group_name() FilterGroup [source]¶
- link_histograms = True¶
- static register_gui(form, on_change, view)[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