mantidimaging.gui.windows.operations.model module

class mantidimaging.gui.windows.operations.model.FiltersWindowModel(presenter: FiltersWindowPresenter)[source]

Bases: object

apply_to_images(images, progress=None)[source]
apply_to_stacks(stacks: List[Images], progress=None)[source]

Applies the selected filter to a given image stack.

It gets the image reference out of the StackVisualiserView and forwards it to the function that actually processes the images.

do_apply_filter(stacks: List[Images], post_filter: Callable[[Any], None])[source]

Applies the selected filter to the selected stack.

do_apply_filter_sync(stacks: List[Images], post_filter: Callable[[Any], None])[source]

Applies the selected filter to the selected stack in a synchronous manner

property filter_names
filter_registration_func(filter_name: str) Callable[[QFormLayout, Callable, BaseMainWindowView], Dict[str, Any]][source]

Gets the function used to register the GUI of a given filter.

Parameters:

filter_name – Name of the filter in the registry

filter_widget_kwargs: Dict[str, Any]
filters: List[BaseFilter]
get_filter_module_name(filter_idx)[source]

Returns the class name of the filter index passed to it

Gets the link histogram status of a filter. :return: True if the histograms should be linked, False otherwise.

property params_needed_from_stack
selected_filter: BaseFilter
setup_filter(filter_name, filter_widget_kwargs)[source]
show_negative_overlay() bool[source]
mantidimaging.gui.windows.operations.model.ensure_tuple(val)[source]