![]() |
Microscopy Image Browser 2.91
MIB
|
a controller class for the get statistics window available via MIB->Menu->Models->Model statistics More...
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 | |
![]() | |
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. | |
a controller class for the get statistics window available via MIB->Menu->Models->Model statistics
mibStatisticsController.mibStatisticsController | ( | mibModel, | |
contIndex, | |||
varargin ) |
obj = mibStatisticsController(mibModel, contIndex, varargin) constructor for mibStatisticsController
mibModel | a handle to mibModel |
contIndex | index of the dataset for statistics (1-mask, 2-Exterior, 3, 4 materials of the model) |
References handle.addlistener, mibModel, and updateBatchOptCombineFields_Shared().
Referenced by startController().
function mibStatisticsController.closeWindow | ( | ) |
closing mibStatisticsController window
References handle.isvalid, and handle.notify.
function mibStatisticsController.enableStatTable | ( | ) |
enable/disable the contents of the statTable
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().
function id = mibStatisticsController.findChildId | ( | childName | ) |
find id of a child controller, see more in mibController.findChildId
childName | name of a child controller |
id | index of the requested child controller or empty if it is not open |
function mibStatisticsController.highlightSelection | ( | object_list, | |
mode, | |||
sliceNumbers ) |
highlight selected objects
object_list | indices of object to highlight |
mode | a 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 |
sliceNumbers | indices of slices for each selected object |
References handle.disp, max, min, handle.notify, and handle.reshape.
function mibStatisticsController.histScale_Callback | ( | ) |
a callback for press of the obj.View.handles.histScale checkbox
function mibStatisticsController.Material_Callback | ( | ) |
a callback for obj.View.handles.Material
function mibStatisticsController.mibStatisticsGUI_WindowButtonDownFcn | ( | ) |
a callback for a mouse button press over obj.View.gui
References handle.sort.
function mibStatisticsController.Multiple_Callback | ( | ) |
callback for press of Multiple checkbox
function mibStatisticsController.multipleBtn_Callback | ( | ) |
a callback for obj.View.handles.multipleBtn, selecting multiple properties for calculation
References mibMaskStatsProps(), and handle.sort.
function mibStatisticsController.Property_Callback | ( | ) |
a callback for obj.View.handles.Property
References max, min, and handle.sort.
|
static |
find index of the child controller and purge it
function mibStatisticsController.radioButton_Callback | ( | hObject | ) |
a callback for obj.View.handles.radioButton
hObject | a handle to the object |
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.
function mibStatisticsController.runStatAnalysis_Callback | ( | batchModeSwitch | ) |
start quantification analysis
batchModeSwitch | logical switch, whether or not the batch mode is used |
References handle.fieldnames, max, mibCalcCurveLength(), min, handle.notify, regionprops3mib(), handle.sort, and STATS.
function data = mibStatisticsController.sortBtn_Callback | ( | data | ) |
function mibStatisticsController.startController | ( | controllerName, | |
varargin ) |
start a child controller using provided name, see more in see more in mibController.startController
controllerName | a string with name of a child controller, for example, mibImageAdjController |
varargin | additional optional controllers or parameters |
References handle.addlistener, and mibStatisticsController().
function mibStatisticsController.statTable_CellSelectionCallback | ( | indices, | |
parameter ) |
a callback for click on cell in obj.View.handles.statTable
indices | indices of selected cells |
parameter | a string with additional parameter,
|
References indices, min, and handle.notify.
function mibStatisticsController.tableContextMenu_cb | ( | parameter | ) |
a callback to context menu for obj.View.handles.statTable
parameter | a string that specify parameter for the callback
|
References handle.findobj, max, mibInputDlg(), mibInputMultiDlg(), min, handle.notify, and num2clip().
function mibStatisticsController.Units_Callback | ( | ) |
callback for change of the unitCombo combo
function mibStatisticsController.updateBatchOptFromGUI | ( | hObject | ) |
function mibStatisticsController.updateSortingSettings | ( | ) |
update settings for sorting the columns of the table obj.sortingDirection obj.sortingColIndex
function mibStatisticsController.updateWidgets | ( | ) |
update widgets of the GUI
References max.
|
static |
|
static |
callback function for detection of mibModel callbacks this function is recommended to use
References handle.fieldnames.
mibStatisticsController.anisotropicVoxelsAgree |
check for warning about anisotropic voxels
mibStatisticsController.availableProperties2D |
cell array with the list of available properties for 2D objects
mibStatisticsController.availableProperties3D |
cell array with the list of available properties for 3D objects
mibStatisticsController.availablePropertiesInt |
cell array with the list of available properties for intensity objects
mibStatisticsController.BatchOpt |
a structure compatible with batch operation, see details in the contsructor
mibStatisticsController.childControllers |
list of opened subcontrollers
mibStatisticsController.childControllersIds |
a cell array with names of initialized child controllers
EVENT mibStatisticsController.closeEvent |
> Description of events event firing when window is closed
mibStatisticsController.histLimits |
limits for the histogram
mibStatisticsController.indices |
indices of selected entries in the statTable
Referenced by statTable_CellSelectionCallback().
mibStatisticsController.intType |
index of the selected mode for the intensity mode
mibStatisticsController.listener |
a cell array with handles to listeners
mibStatisticsController.mibModel |
handles to the model
Referenced by mibStatisticsController().
mibStatisticsController.obj2DType |
index of the selected mode for the object mode
mibStatisticsController.obj3DType |
index of the selected mode for the object mode
mibStatisticsController.runId |
a vector [datasetId, materialId] for which dataset statistics was calculated
mibStatisticsController.sortingColIndex |
a number with the index of the column to use for sorting (i.e. 1, 2, 3, or 4)
mibStatisticsController.sortingDirection |
a variable to keep sorting status for columns, ascend
or descend
mibStatisticsController.sortingRowIndex |
after sorting, index in the table that corresponds to obj.STATS index
mibStatisticsController.statProperties |
list of properties to calculate
mibStatisticsController.STATS |
a structure with quantification results
Referenced by exportButton_Callback(), and runStatAnalysis_Callback().
mibStatisticsController.View |
handle to the view