DebrisRemoval¶
- class controllers.DebrisRemoval¶
Bases:
handleDEBRISREMOVAL - Controller for the Debris removal dialog.
Removes debris artifacts from 3D image stacks by comparing adjacent slices and replacing detected outlier regions with interpolated content.
Launch as GUI tool:
obj.mibController.startController('controllers.DebrisRemoval');Launch in batch mode:
BatchOpt.DetectionMode = {'AutomaticDetection'}; BatchOpt.IntensityThreshold = {100, [0 Inf], 'on'}; obj.mibController.startController('controllers.DebrisRemoval', [], BatchOpt);Trigger return of possible options:
obj.mibController.startController('controllers.DebrisRemoval', [], NaN);- Constructor Summary
- DebrisRemoval(mibModel, varargin)¶
DEBRISREMOVAL - Constructor.
- Syntax:
obj = DebrisRemoval(mibModel) obj = DebrisRemoval(mibModel, [], BatchOpt)
- Property Summary
- BatchOpt¶
cell array of listener handles
- listener¶
handle to main MIB figure (used as parent for dialogs)
- mibGUI¶
handle to the view (views.DebrisRemovalGUI)
- mibModel¶
- view¶
handle to MibModel
- Method Summary
- Calculate(mode, batchModeSwitch)¶
CALCULATE - Remove debris artifacts from the image stack.
- Parameters:¶
* (
**batchModeSwitch**)all' (
'Remove)*
Default (
skips undo backup.) –false.
- static ViewListner_Callback2(~, evnt)¶
VIEWLISTNER_CALLBACK2 - Static listener guard; safe even when view is invalid.
- addCallbacks()¶
ADDCALLBACKS - Wire all widget callbacks after view creation.
- closeWindow()¶
CLOSEWINDOW - Destroy view and fire CloseEvent.
- detectionModeSelectionChanged(event)¶
DETECTIONMODESELECTIONCHANGED - Update BatchOpt and toggle mode-dependent widgets.
- figureKeyPress(event)¶
FIGUREKEYPRESS - Forward key presses to MIB main window shortcuts.
- helpButton_Callback()¶
HELPBUTTON_CALLBACK - Open documentation in browser.
- returnBatchOpt(BatchOptOut)¶
RETURNBATCHOPT - Send BatchOpt to mibBatchController.
- updateBatchOptFromGUI(event)¶
UPDATEBATCHOPTFROMGUI - Sync BatchOpt from a widget change event.
- updateWidgets()¶
UPDATEWIDGETS - Refresh widgets to reflect current model state.