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

a controller class for the get statistics window available via MIB->Menu->Models->Model statistics More...

Inheritance diagram for mibStatisticsController:
Collaboration diagram for mibStatisticsController:

Public Member Functions

 mibStatisticsController (mibModel, contIndex, varargin)
 obj = mibStatisticsController(mibModel, contIndex, varargin) constructor for mibStatisticsController
 
function  closeWindow ()
 closing mibStatisticsController window
 
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  updateBatchOptFromGUI (hObject)
 
function  updateWidgets ()
 update widgets of the GUI
 
function  histScale_Callback ()
 a callback for press of the obj.View.handles.histScale checkbox
 
function  tableContextMenu_cb (parameter)
 a callback to context menu for obj.View.handles.statTable
 
function  updateSortingSettings ()
 update settings for sorting the columns of the table obj.sortingDirection obj.sortingColIndex
 
function  Material_Callback ()
 a callback for obj.View.handles.Material
 
function  Property_Callback ()
 a callback for obj.View.handles.Property
 
function  radioButton_Callback (hObject)
 a callback for obj.View.handles.radioButton
 
function  highlightSelection (object_list, mode, sliceNumbers)
 highlight selected objects
 
function  statTable_CellSelectionCallback (indices, parameter)
 a callback for click on cell in obj.View.handles.statTable
 
function  mibStatisticsGUI_WindowButtonDownFcn ()
 a callback for a mouse button press over obj.View.gui
 
function  Units_Callback ()
 callback for change of the unitCombo combo
 
function  multipleBtn_Callback ()
 a callback for obj.View.handles.multipleBtn, selecting multiple properties for calculation
 
function  Multiple_Callback ()
 callback for press of Multiple checkbox
 
function  exportButton_Callback (batchModeSwitch)
 a callback for obj.View.handles.exportButton Parameters: batchModeSwitch: a logical switch indicating using the function from the batch mode
 
function  runStatAnalysis_Callback (batchModeSwitch)
 start quantification analysis
 
function data = sortBtn_Callback (data)
 sort the table
 
function  enableStatTable ()
 enable/disable the contents of the statTable
 
function id = findChildId (childName)
 find id of a child controller, see more in mibController.findChildId
 
function  startController (controllerName, varargin)
 start a child controller using provided name, see more in see more in mibController.startController
 

Static Public Member Functions

static function  ViewListner_Callback2 (obj, src, evnt)
 
static function  ViewListner_ModelEvent_Callback (obj, src, evnt)
 callback function for detection of mibModel callbacks this function is recommended to use
 
static function  purgeControllers (obj, src, evnt)
 find index of the child controller and purge it
 

Public Attributes

 mibModel
 handles to the model
 
 View
 handle to the view
 
 anisotropicVoxelsAgree
 check for warning about anisotropic voxels
 
 availableProperties2D
 cell array with the list of available properties for 2D objects
 
 availableProperties3D
 cell array with the list of available properties for 3D objects
 
 availablePropertiesInt
 cell array with the list of available properties for intensity objects
 
 histLimits
 limits for the histogram
 
 indices
 indices of selected entries in the statTable
 
 listener
 a cell array with handles to listeners
 
 intType
 index of the selected mode for the intensity mode
 
 obj2DType
 index of the selected mode for the object mode
 
 obj3DType
 index of the selected mode for the object mode
 
 runId
 a vector [datasetId, materialId] for which dataset statistics was calculated
 
 sortingDirection
 a variable to keep sorting status for columns, ascend or descend
 
 sortingColIndex
 a number with the index of the column to use for sorting (i.e. 1, 2, 3, or 4)
 
 sortingRowIndex
 after sorting, index in the table that corresponds to obj.STATS index
 
 statProperties
 list of properties to calculate
 
 STATS
 a structure with quantification results
 
 childControllers
 list of opened subcontrollers
 
 childControllersIds
 a cell array with names of initialized child controllers
 
 BatchOpt
 a structure compatible with batch operation, see details in the contsructor
 
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

a controller class for the get statistics window available via MIB->Menu->Models->Model statistics

Constructor & Destructor Documentation

◆ mibStatisticsController()

mibStatisticsController.mibStatisticsController ( mibModel,
contIndex,
varargin )

obj = mibStatisticsController(mibModel, contIndex, varargin) constructor for mibStatisticsController

Parameters
mibModela handle to mibModel
contIndexindex of the dataset for statistics (1-mask, 2-Exterior, 3, 4 materials of the model)
Required fields of mibModel:

References handle.addlistener, mibModel, and updateBatchOptCombineFields_Shared().

Referenced by startController().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ closeWindow()

function mibStatisticsController.closeWindow ( )

closing mibStatisticsController window

References handle.isvalid, and handle.notify.

◆ enableStatTable()

function mibStatisticsController.enableStatTable ( )

enable/disable the contents of the statTable

◆ exportButton_Callback()

function mibStatisticsController.exportButton_Callback ( batchModeSwitch)

a callback for obj.View.handles.exportButton Parameters: batchModeSwitch: a logical switch indicating using the function from the batch mode

References handle.disp, handle.fieldnames, mibInputDlg(), STATS, and xlswrite2().

Here is the call graph for this function:

◆ findChildId()

function id = mibStatisticsController.findChildId ( childName)

find id of a child controller, see more in mibController.findChildId

Parameters
childNamename of a child controller
Return values
idindex of the requested child controller or empty if it is not open

◆ highlightSelection()

function mibStatisticsController.highlightSelection ( object_list,
mode,
sliceNumbers )

highlight selected objects

Parameters
object_listindices of object to highlight
modea string Add - add selected objects to the selection layer Remove - remove selected objects from the selection layer Replace - replace the selection layer with selected objects obj2model - generate a new model, where each selected object will be assigned to own index
sliceNumbersindices of slices for each selected object

References handle.disp, max, min, handle.notify, and handle.reshape.

◆ histScale_Callback()

function mibStatisticsController.histScale_Callback ( )

a callback for press of the obj.View.handles.histScale checkbox

◆ Material_Callback()

function mibStatisticsController.Material_Callback ( )

a callback for obj.View.handles.Material

◆ mibStatisticsGUI_WindowButtonDownFcn()

function mibStatisticsController.mibStatisticsGUI_WindowButtonDownFcn ( )

a callback for a mouse button press over obj.View.gui

References handle.sort.

◆ Multiple_Callback()

function mibStatisticsController.Multiple_Callback ( )

callback for press of Multiple checkbox

◆ multipleBtn_Callback()

function mibStatisticsController.multipleBtn_Callback ( )

a callback for obj.View.handles.multipleBtn, selecting multiple properties for calculation

References mibMaskStatsProps(), and handle.sort.

Here is the call graph for this function:

◆ Property_Callback()

function mibStatisticsController.Property_Callback ( )

a callback for obj.View.handles.Property

References max, min, and handle.sort.

◆ purgeControllers()

static function mibStatisticsController.purgeControllers ( obj,
src,
evnt )
static

find index of the child controller and purge it

Required fields of obj:

◆ radioButton_Callback()

function mibStatisticsController.radioButton_Callback ( hObject)

a callback for obj.View.handles.radioButton

Parameters
hObjecta handle to the object
Required fields of hObject:

◆ returnBatchOpt()

function mibStatisticsController.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.

◆ runStatAnalysis_Callback()

function mibStatisticsController.runStatAnalysis_Callback ( batchModeSwitch)

start quantification analysis

Parameters
batchModeSwitchlogical switch, whether or not the batch mode is used

References handle.fieldnames, max, mibCalcCurveLength(), min, handle.notify, regionprops3mib(), handle.sort, and STATS.

Here is the call graph for this function:

◆ sortBtn_Callback()

function data = mibStatisticsController.sortBtn_Callback ( data)

sort the table

Parameters
dataa matrix with contents of the table

References handle.sort.

◆ startController()

function mibStatisticsController.startController ( controllerName,
varargin )

start a child controller using provided name, see more in see more in mibController.startController

Parameters
controllerNamea string with name of a child controller, for example, mibImageAdjController
vararginadditional optional controllers or parameters

References handle.addlistener, and mibStatisticsController().

Here is the call graph for this function:

◆ statTable_CellSelectionCallback()

function mibStatisticsController.statTable_CellSelectionCallback ( indices,
parameter )

a callback for click on cell in obj.View.handles.statTable

Parameters
indicesindices of selected cells
parametera string with additional parameter,
  • obj2model, generate a new model, where each selected object will be assigned to own index
  • skip to do not highlight selected objects

References indices, min, and handle.notify.

◆ tableContextMenu_cb()

function mibStatisticsController.tableContextMenu_cb ( parameter)

a callback to context menu for obj.View.handles.statTable

Parameters
parametera string that specify parameter for the callback
  • mean - calculate an average of all selected numbers
  • sum - calculate a sum of all selected numbers
  • min - find the minimum value of all selected numbers
  • max - find the maximum value of all selected numbers
  • crop - crop selected objects to a file or MATLAB
  • hist - show histogram distribution for the selected objects
  • newLabel, addLabel, removeLabel - generate or update the MIB annotations
  • copyColumn - copy selected column to the clipboard
  • colormap - color materials based on their value

References handle.findobj, max, mibInputDlg(), mibInputMultiDlg(), min, handle.notify, and num2clip().

Here is the call graph for this function:

◆ Units_Callback()

function mibStatisticsController.Units_Callback ( )

callback for change of the unitCombo combo

◆ updateBatchOptFromGUI()

function mibStatisticsController.updateBatchOptFromGUI ( hObject)

References updateBatchOptFromGUI_Shared().

Here is the call graph for this function:

◆ updateSortingSettings()

function mibStatisticsController.updateSortingSettings ( )

update settings for sorting the columns of the table obj.sortingDirection obj.sortingColIndex

◆ updateWidgets()

function mibStatisticsController.updateWidgets ( )

update widgets of the GUI

References max.

◆ ViewListner_Callback2()

static function mibStatisticsController.ViewListner_Callback2 ( obj,
src,
evnt )
static

◆ ViewListner_ModelEvent_Callback()

static function mibStatisticsController.ViewListner_ModelEvent_Callback ( obj,
src,
evnt )
static

callback function for detection of mibModel callbacks this function is recommended to use

Required fields of evnt:
Required fields of obj:

References handle.fieldnames.

Member Data Documentation

◆ anisotropicVoxelsAgree

mibStatisticsController.anisotropicVoxelsAgree

check for warning about anisotropic voxels

◆ availableProperties2D

mibStatisticsController.availableProperties2D

cell array with the list of available properties for 2D objects

◆ availableProperties3D

mibStatisticsController.availableProperties3D

cell array with the list of available properties for 3D objects

◆ availablePropertiesInt

mibStatisticsController.availablePropertiesInt

cell array with the list of available properties for intensity objects

◆ BatchOpt

mibStatisticsController.BatchOpt

a structure compatible with batch operation, see details in the contsructor

◆ childControllers

mibStatisticsController.childControllers

list of opened subcontrollers

◆ childControllersIds

mibStatisticsController.childControllersIds

a cell array with names of initialized child controllers

◆ closeEvent

EVENT mibStatisticsController.closeEvent

> Description of events event firing when window is closed

Events
closeEvent

◆ histLimits

mibStatisticsController.histLimits

limits for the histogram

◆ indices

mibStatisticsController.indices

indices of selected entries in the statTable

Referenced by statTable_CellSelectionCallback().

◆ intType

mibStatisticsController.intType

index of the selected mode for the intensity mode

◆ listener

mibStatisticsController.listener

a cell array with handles to listeners

◆ mibModel

mibStatisticsController.mibModel

handles to the model

Referenced by mibStatisticsController().

◆ obj2DType

mibStatisticsController.obj2DType

index of the selected mode for the object mode

◆ obj3DType

mibStatisticsController.obj3DType

index of the selected mode for the object mode

◆ runId

mibStatisticsController.runId

a vector [datasetId, materialId] for which dataset statistics was calculated

◆ sortingColIndex

mibStatisticsController.sortingColIndex

a number with the index of the column to use for sorting (i.e. 1, 2, 3, or 4)

◆ sortingDirection

mibStatisticsController.sortingDirection

a variable to keep sorting status for columns, ascend or descend

◆ sortingRowIndex

mibStatisticsController.sortingRowIndex

after sorting, index in the table that corresponds to obj.STATS index

◆ statProperties

mibStatisticsController.statProperties

list of properties to calculate

◆ STATS

mibStatisticsController.STATS

a structure with quantification results

Referenced by exportButton_Callback(), and runStatAnalysis_Callback().

◆ View

mibStatisticsController.View

handle to the view


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