ContentAwareFill¶
- class controllers.ContentAwareFill¶
Bases:
handleCONTENTAWAREFILL - Controller for the Content-aware fill dialog.
Launch as GUI tool:
obj.mibController.startController('controllers.ContentAwareFill');Launch in batch mode:
BatchOpt.DatasetType = {'Current stack (3D)'}; BatchOpt.Method = {'inpaintExemplar'}; obj.mibController.startController('controllers.ContentAwareFill', [], BatchOpt);- Constructor Summary
- ContentAwareFill(mibModel, varargin)¶
CONTENTAWAREFILL - Constructor.
- Syntax:
obj = ContentAwareFill(mibModel) obj = ContentAwareFill(mibModel, [], BatchOpt)
- Property Summary
- BatchOpt¶
cell array of listener handles
- listener¶
handle to main MIB figure (used as parent for modal dialogs)
- mibGUI¶
handle to the view (views.ContentAwareFillGUI)
- mibModel¶
- view¶
handle to MibModel
- Method Summary
- static ViewListner_Callback2(~, evnt)¶
VIEWLISTNER_CALLBACK2 - Static listener guard; safe even when view is invalid.
- addCallbacks()¶
ADDCALLBACKS - Wire all widget callbacks after view creation.
- applyFilter(imgIn, maskIn)¶
APPLYFILTER - Apply content-aware fill to a supplied image (preview) or to the dataset.
- Syntax:
imgOut = obj.applyFilter(imgIn, maskIn) % preview mode obj.applyFilter() % full dataset mode- Input Arguments:
imgIn (optional) - [numeric] H×W or H×W×C image for preview mode.
maskIn (optional) - [logical] H×W binary mask for preview mode.
- Output Arguments:
imgOut - [numeric] filled image (preview mode only).
- closeWindow()¶
CLOSEWINDOW - Save session settings, destroy view, fire CloseEvent.
- figureKeyPress(event)¶
FIGUREKEYPRESS - Forward key presses to MIB main window shortcuts.
- helpButton_Callback()¶
HELPBUTTON_CALLBACK - Open documentation in browser.
- methodChanged(event)¶
METHODCHANGED - Update BatchOpt and toggle method-dependent widget states.
- previewButtonPushed()¶
PREVIEWBUTTONPUSHED - Apply fill to current view slice and display as overlay.
- returnBatchOpt(BatchOptOut)¶
RETURNBATCHOPT - Send BatchOpt to mibBatchController.
- updateBatchOptFromGUI(event)¶
UPDATEBATCHOPTFROMGUI - Sync BatchOpt from a widget change event.
- updateMethodDependentWidgets()¶
UPDATEMETHODDEPENDENTWIDGETS - Enable/disable SmoothingFactor and FillOrder based on the selected inpaint method.
- updateWidgets()¶
UPDATEWIDGETS - Refresh widgets to reflect current model state.