Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
mibDeepAugmentSettingsController Class Reference

class is a template class for using with GUI developed using appdesigner of Matlab More...

Inheritance diagram for mibDeepAugmentSettingsController:
Collaboration diagram for mibDeepAugmentSettingsController:

Public Member Functions

 mibDeepAugmentSettingsController (mibModel, varargin)
 
function  closeWindow ()
 closing mibDeepAugmentSettingsController window
 
function  updateWidgets (widgetGroup)
 update widgets of this window
 
function  enableStateChange (event)
 callback on press of enable checkboxes - enable or disable the selected augmentation
 
function  updateAugmentationParameters (event)
 callback on change of spinboxes - change settings for augmentations
 
function  disableAugmentations ()
 disable all augmentations
 
function  resetAugmentations ()
 resetAugmentations(obj) reset augmentation settings to their default values
 
function  setPreviewAugmentationSettings ()
 update settings for preview of augmented patches
 
function  previewAugmentations (selectedAugmentation)
 previewAugmentations(obj, selectedAugmentation) preview selected augmentations. The order of shown augmentations depends on the Random seed value within the Train tab of DeepMIB, when 0 a random set of augmentations is used each time, otherwise random generator os always intialized using the provided seed.
 
function  restorePreviousSeed ()
 restore the previous seed used in random settings
 
function  Accept ()
 ---------------------------------------------------------------— % Additional functions and callbacks accept selected augmentations
 

Static Public Member Functions

static function  ViewListner_Callback (obj, src, evnt)
 

Public Attributes

 mibModel
 handles to mibModel
 
 View
 handle to the view / mibDeepAugmentSettingsGUI
 
 listener
 a cell array with handles to listeners
 
 BatchOpt
 a structure compatible with batch operation name of each field should be displayed in a tooltip of GUI it is recommended that the Tags of widgets match the name of the fields in this structure .Parameter - [editbox], char/string .Checkbox - [checkbox], logical value true or false .Dropdown{1} - [dropdown], cell string for the dropdown .Dropdown{2} - [optional], an array with possible options .Radio - [radiobuttons], cell string Radio1 or Radio2... .ParameterNumeric{1} - [numeric editbox], cell with a number .ParameterNumeric{2} - [optional], vector with limits [min, max] .ParameterNumeric{3} - [optional], string on - to round the value, off to do not round the value
 
 mibDeep
 a handle to parent mibDeep controller
 
 augmentationMode
 a string defining 2D or 3D augmentations to setup
 
 augOptions
 copy of augmented options obj.obj.AugOpt2D or obj.obj.AugOpt3D
 
 lastSeed
 last random seed used
 
EVENT closeEvent
 > Description of events event firing when window is closed
 
- Public Attributes inherited from handle
 addlistener
 Creates a listener for the specified event and assigns a callback function to execute when the event occurs.
 
 notify
 Broadcast a notice that a specific event is occurring on a specified handle object or array of handle objects.
 
 delete
 Handle object destructor method that is called when the object's lifecycle ends.
 
 disp
 Handle object disp method which is called by the display method. See the MATLAB disp function.
 
 display
 Handle object display method called when MATLAB software interprets an expression returning a handle object that is not terminated by a semicolon. See the MATLAB display function.
 
 findobj
 Finds objects matching the specified conditions from the input array of handle objects.
 
 findprop
 Returns a meta.property objects associated with the specified property name.
 
 fields
 Returns a cell array of string containing the names of public properties.
 
 fieldnames
 Returns a cell array of string containing the names of public properties. See the MATLAB fieldnames function.
 
 isvalid
 Returns a logical array in which elements are true if the corresponding elements in the input array are valid handles. This method is Sealed so you cannot override it in a handle subclass.
 
 eq
 Relational functions example. See details for more information.
 
 transpose
 Transposes the elements of the handle object array.
 
 permute
 Rearranges the dimensions of the handle object array. See the MATLAB permute function.
 
 reshape
 hanges the dimensions of the handle object array to the specified dimensions. See the MATLAB reshape function.
 
 sort
 ort the handle objects in any array in ascending or descending order.
 

Detailed Description

class is a template class for using with GUI developed using appdesigner of Matlab

obj.startController('mibDeepAugmentSettingsController'); // as GUI tool

or

// a code below was used for mibImageArithmeticController
BatchOpt.Parameter = 'test'; // fill edit boxes as strings
BatchOpt.Checkbox = true; // fill checkboxes with logicals: true/false
BatchOpt.Popup = {'value'}; // value for the popups as a cell
BatchOpt.Radio = {'Radio1'}; // selection of radio buttons, as cell with the handle of the target radio button
BatchOpt.showWaitbar = true; // show or not the waitbar
obj.startController('mibDeepAugmentSettingsController', [], BatchOpt); // start mibDeepAugmentSettingsController in the batch mode
BatchOpt
a structure compatible with batch operation name of each field should be displayed in a tooltip of GU...
Definition mibDeepAugmentSettingsController.m:69

or

// trigger return of the possible Options using returnBatchOpt function
// using notify syncBatch event
obj.startController('mibDeepAugmentSettingsController', [], NaN);

Constructor & Destructor Documentation

◆ mibDeepAugmentSettingsController()

mibDeepAugmentSettingsController.mibDeepAugmentSettingsController ( mibModel,
varargin )

References handle.addlistener, mibModel, mibUpdateFontSize(), and moveWindowOutside().

Here is the call graph for this function:

Member Function Documentation

◆ Accept()

function mibDeepAugmentSettingsController.Accept ( )

---------------------------------------------------------------— % Additional functions and callbacks accept selected augmentations

References handle.fieldnames.

◆ closeWindow()

function mibDeepAugmentSettingsController.closeWindow ( )

◆ disableAugmentations()

function mibDeepAugmentSettingsController.disableAugmentations ( )

disable all augmentations

References handle.fieldnames.

◆ enableStateChange()

function mibDeepAugmentSettingsController.enableStateChange ( event)

callback on press of enable checkboxes - enable or disable the selected augmentation

Required fields of event:

◆ previewAugmentations()

function mibDeepAugmentSettingsController.previewAugmentations ( selectedAugmentation)

previewAugmentations(obj, selectedAugmentation) preview selected augmentations. The order of shown augmentations depends on the Random seed value within the Train tab of DeepMIB, when 0 a random set of augmentations is used each time, otherwise random generator os always intialized using the provided seed.

Parameters
selectedAugmentationstring with the id of the augmentation to preview. When empty, all augmentations will be rendered.

References handle.fieldnames, mibDeepAugmentAndCrop2dPatchMultiGPU(), mibDeepAugmentAndCrop3dPatchMultiGPU(), mibDeepStoreLoadImages(), mibInputMultiDlg(), mibShowErrorDialog(), and min.

Here is the call graph for this function:

◆ resetAugmentations()

function mibDeepAugmentSettingsController.resetAugmentations ( )

resetAugmentations(obj) reset augmentation settings to their default values

References mibDeepGenerateDefaultAugmentationSettings().

Here is the call graph for this function:

◆ restorePreviousSeed()

function mibDeepAugmentSettingsController.restorePreviousSeed ( )

restore the previous seed used in random settings

◆ setPreviewAugmentationSettings()

function mibDeepAugmentSettingsController.setPreviewAugmentationSettings ( )

update settings for preview of augmented patches

References mibInputMultiDlg().

Here is the call graph for this function:

◆ updateAugmentationParameters()

function mibDeepAugmentSettingsController.updateAugmentationParameters ( event)

callback on change of spinboxes - change settings for augmentations

Required fields of event:

◆ updateWidgets()

function mibDeepAugmentSettingsController.updateWidgets ( widgetGroup)

update widgets of this window

◆ ViewListner_Callback()

static function mibDeepAugmentSettingsController.ViewListner_Callback ( obj,
src,
evnt )
static

Member Data Documentation

◆ augmentationMode

mibDeepAugmentSettingsController.augmentationMode

a string defining 2D or 3D augmentations to setup

◆ augOptions

mibDeepAugmentSettingsController.augOptions

copy of augmented options obj.obj.AugOpt2D or obj.obj.AugOpt3D

◆ BatchOpt

mibDeepAugmentSettingsController.BatchOpt

a structure compatible with batch operation name of each field should be displayed in a tooltip of GUI it is recommended that the Tags of widgets match the name of the fields in this structure .Parameter - [editbox], char/string .Checkbox - [checkbox], logical value true or false .Dropdown{1} - [dropdown], cell string for the dropdown .Dropdown{2} - [optional], an array with possible options .Radio - [radiobuttons], cell string Radio1 or Radio2... .ParameterNumeric{1} - [numeric editbox], cell with a number .ParameterNumeric{2} - [optional], vector with limits [min, max] .ParameterNumeric{3} - [optional], string on - to round the value, off to do not round the value

◆ closeEvent

EVENT mibDeepAugmentSettingsController.closeEvent

> Description of events event firing when window is closed

Events
closeEvent

◆ lastSeed

mibDeepAugmentSettingsController.lastSeed

last random seed used

◆ listener

mibDeepAugmentSettingsController.listener

a cell array with handles to listeners

◆ mibDeep

mibDeepAugmentSettingsController.mibDeep

a handle to parent mibDeep controller

◆ mibModel

mibDeepAugmentSettingsController.mibModel

handles to mibModel

Referenced by mibDeepAugmentSettingsController().

◆ View

mibDeepAugmentSettingsController.View

handle to the view / mibDeepAugmentSettingsGUI


The documentation for this class was generated from the following file: