ImageFrame

class controllers.ImageFrame

Bases: handle

IMAGEFRAME - Controller for the Select Image Frame dialog.

Detects border regions of an image (connected components with a specified intensity value that touch the image edges) and writes them to the Selection, Mask, or Image layer.

Launch as GUI tool:

obj.mibController.startController('controllers.ImageFrame');

Launch in batch mode:

BatchOpt.DatasetType    = {'3D, Stack'};
BatchOpt.FrameIntensity = {0, [0 Inf], 'on'};
BatchOpt.Destination    = {'Selection'};
BatchOpt.showWaitbar    = false;
obj.mibController.startController('controllers.ImageFrame', [], BatchOpt);

Trigger return of possible options:

obj.mibController.startController('controllers.ImageFrame', [], NaN);
Constructor Summary
ImageFrame(mibModel, varargin)

IMAGEFRAME - Constructor.

Syntax:
obj = ImageFrame(mibModel)
obj = ImageFrame(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.ImageFrameGUI)

mibModel
view

handle to MibModel

Method Summary
Calculate(batchModeSwitch)

CALCULATE - Detect and mark image frame border pixels.

Parameters:

* (**batchModeSwitch**) – skips undo backup and returnBatchOpt. Default: 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.

destinationChanged(event)

DESTINATIONCHANGED - Update BatchOpt and toggle NewFrameIntensity field.

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.