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

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

Inheritance diagram for mibDeepActivationsController:
Collaboration diagram for mibDeepActivationsController:

Public Member Functions

 mibDeepActivationsController (mibModel, varargin)
 
function  closeWindow ()
 closing mibDeepActivationsController window
 
function  updateWidgets ()
 update widgets of this window
 
function  updateBatchOptFromGUI (event)
 
function  returnBatchOpt (BatchOptOut)
 return structure with Batch Options and possible configurations via the notify syncBatch event Parameters: BatchOptOut: a local structure with Batch Options generated during Continue callback. It may contain more fields than obj.BatchOpt structure
 
function status = getNewImage (filename)
 load a new image from prediction image store
 
function  updatePreviewImage ()
 update preview of the original image
 
function  ShiftImage (event)
 callback for change of x1, y1, z1 coordinates to shift the patch
 
function  getActivations ()
 from the selected image area generate activations
 
function  showActivations ()
 show activations for the current image
 
function  changeImage (event)
 callback for change image buttons
 
function  makeCollage (silentMode)
 make collage image from activations
 

Static Public Member Functions

static function  ViewListner_Callback (obj, src, evnt)
 

Public Attributes

 mibModel
 handles to mibModel
 
 View
 handle to the view / mibDeepActivationsGUI
 
 listener
 a cell array with handles to listeners
 
 mibDeep
 a handle to parent mibDeep controller
 
 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 .NetworkLayerName{1} - [dropdown], cell string with the desired layer; NetworkLayerName{2} - [optional], an array with possible layers .ImageFilename{1} - [dropdown], cell string with the file name to show .z1{1} - numeric, number of slice for 3D datasets to show .x1{1} - numeric, image shift in x .y1{1} - numeric, image shift in y .patchZ{1} - numeric, position inside the activation block .filterId{1} - numeric, filter id of the activation block
 
 imgDS
 imageDatastore with images to be be explored
 
 imageOriginal
 a cropped original image that will be used to get activations, [height, width, color, depth]
 
 imageActivation
 returned activations for the imageOriginal
 
 deltaZ
 difference between the Z of the image and the show patch patch Z
 
 patchNetworkDims
 dimensions of network layer patch
 
 net
 a structure with the loaded network file .AugOpt2DStruct 1x1 1690 struct .AugOpt3DStruct 1x1 1253 struct .BatchOpt 1x1 23881 struct .InputLayerOpt 1x1 928 struct .TrainingOptionsStruct 1x1 2060 struct .classNames 4x1 492 cell .inputPatchSize 1x4 32 double .net 1x1 30905044 DAGNetwork .outputPatchSize 1x4 32 double
 
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('mibDeepActivationsController'); // 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('mibDeepActivationsController', [], BatchOpt); // start mibDeepActivationsController in the batch mode
BatchOpt
a structure compatible with batch operation name of each field should be displayed in a tooltip of GU...
Definition mibDeepActivationsController.m:75

or

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

Constructor & Destructor Documentation

◆ mibDeepActivationsController()

mibDeepActivationsController.mibDeepActivationsController ( mibModel,
varargin )

Member Function Documentation

◆ changeImage()

function mibDeepActivationsController.changeImage ( event)

callback for change image buttons

Parameters
eventan event structure of appdesigner
Required fields of event:

References max, and min.

◆ closeWindow()

function mibDeepActivationsController.closeWindow ( )

◆ getActivations()

function mibDeepActivationsController.getActivations ( )

from the selected image area generate activations

References min, and handle.permute.

◆ getNewImage()

function status = mibDeepActivationsController.getNewImage ( filename)

load a new image from prediction image store

Parameters
filenameshort filename of the image to show
Return values
statuslogical switch, 1 - success

References min, and handle.permute.

◆ makeCollage()

function mibDeepActivationsController.makeCollage ( silentMode)

make collage image from activations

Parameters
silentModelogical ask or not for FigName and resize, see "generateSnapshots = false;" in the ShiftImage function

References mibInputMultiDlg(), handle.permute, and handle.reshape.

Here is the call graph for this function:

◆ returnBatchOpt()

function mibDeepActivationsController.returnBatchOpt ( BatchOptOut)

return structure with Batch Options and possible configurations via the notify syncBatch event Parameters: BatchOptOut: a local structure with Batch Options generated during Continue callback. It may contain more fields than obj.BatchOpt structure

References handle.notify.

◆ ShiftImage()

function mibDeepActivationsController.ShiftImage ( event)

callback for change of x1, y1, z1 coordinates to shift the patch

Required fields of event:

References max, and min.

◆ showActivations()

function mibDeepActivationsController.showActivations ( )

show activations for the current image

References max, mibShowErrorDialog(), and min.

Here is the call graph for this function:

◆ updateBatchOptFromGUI()

function mibDeepActivationsController.updateBatchOptFromGUI ( event)

References updateBatchOptFromGUI_Shared().

Here is the call graph for this function:

◆ updatePreviewImage()

function mibDeepActivationsController.updatePreviewImage ( )

update preview of the original image

References min.

◆ updateWidgets()

function mibDeepActivationsController.updateWidgets ( )

update widgets of this window

References updateGUIFromBatchOpt_Shared().

Here is the call graph for this function:

◆ ViewListner_Callback()

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

Member Data Documentation

◆ BatchOpt

mibDeepActivationsController.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 .NetworkLayerName{1} - [dropdown], cell string with the desired layer; NetworkLayerName{2} - [optional], an array with possible layers .ImageFilename{1} - [dropdown], cell string with the file name to show .z1{1} - numeric, number of slice for 3D datasets to show .x1{1} - numeric, image shift in x .y1{1} - numeric, image shift in y .patchZ{1} - numeric, position inside the activation block .filterId{1} - numeric, filter id of the activation block

◆ closeEvent

EVENT mibDeepActivationsController.closeEvent

> Description of events event firing when window is closed

Events
closeEvent

◆ deltaZ

mibDeepActivationsController.deltaZ

difference between the Z of the image and the show patch patch Z

◆ imageActivation

mibDeepActivationsController.imageActivation

returned activations for the imageOriginal

◆ imageOriginal

mibDeepActivationsController.imageOriginal

a cropped original image that will be used to get activations, [height, width, color, depth]

◆ imgDS

mibDeepActivationsController.imgDS

imageDatastore with images to be be explored

◆ listener

mibDeepActivationsController.listener

a cell array with handles to listeners

◆ mibDeep

mibDeepActivationsController.mibDeep

a handle to parent mibDeep controller

◆ mibModel

mibDeepActivationsController.mibModel

handles to mibModel

Referenced by mibDeepActivationsController().

◆ net

mibDeepActivationsController.net

a structure with the loaded network file .AugOpt2DStruct 1x1 1690 struct .AugOpt3DStruct 1x1 1253 struct .BatchOpt 1x1 23881 struct .InputLayerOpt 1x1 928 struct .TrainingOptionsStruct 1x1 2060 struct .classNames 4x1 492 cell .inputPatchSize 1x4 32 double .net 1x1 30905044 DAGNetwork .outputPatchSize 1x4 32 double

◆ patchNetworkDims

mibDeepActivationsController.patchNetworkDims

dimensions of network layer patch

◆ View

mibDeepActivationsController.View

handle to the view / mibDeepActivationsGUI


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