hyperspyui.plugins.gaussianfilter module

class hyperspyui.plugins.gaussianfilter.GaussianFilter(ui)

Bases: hyperspyui.plugins.plugin.Plugin

create_actions()
create_menu()
create_toolbars()
gaussian(sigma, signal=None, out=None, record=True, *args, **kwargs)

Apply a gaussian smoothing filter to an image signal. Uses py:func:skimage.filters.gaussian for the actual processing.

Parameters
  • sigma ({float}) – Smoothing factor in units of pixels, i.e a value around 1 is a slight smoothing.

  • signal ({Signal | None}) – Signal to operate on. If not, it will use the currently selected one

  • out ({Signal | None}) – Output signal

  • record ({bool}) – Whether the operation should be recorded or not.

  • **kwargs (dict) – Other keyword arguments are passed to py:func:skimage.filters.gaussian.

name = 'Gaussian Filter'
on_dialog_accept(dialog)
selection_rules(win, action)

Callback to determine if filter is valid for the passed window.

show_dialog()
class hyperspyui.plugins.gaussianfilter.GaussianFilterDialog(signal, parent, plugin)

Bases: hyperspyui.widgets.extendedqwidgets.ExToolWindow

close_new(value=False)
connect()
create_controls()

Create UI controls.

disconnect(QMetaObject.Connection) bool
disconnect(self) None
ok()
set_preview(value)
undo()
update(self)
update(self, QRect) None
update(self, QRegion) None
GaussianFilterDialog.update(self, int, int, int, int) -> None
hyperspyui.plugins.gaussianfilter.tr(text)