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

class is responsible for showing the Morphological operations for images window, available from MIB->Menu->Tools->Semi-automatic segmentation->Automatic black-and-white thresholding More...

Inheritance diagram for mibHistThresController:
Collaboration diagram for mibHistThresController:

Public Member Functions

 mibHistThresController (mibModel, varargin)
 
function  closeWindow ()
 closing mibHistThresController window
 
function  updateWidgets ()
 update widgets of this window
 
function  Method_Callback ()
 callback for change of obj.View.handles.Method
 
function  previewBtn_Callback ()
 callback for press of obj.View.handles.previewBtn
 
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  continueBtn_Callback ()
 perform thresholding
 

Static Public Member Functions

static function  ViewListner_Callback2 (obj, src, evnt)
 

Public Attributes

 mibModel
 handles to the model
 
 View
 handle to the view
 
 listener
 a cell array with handles to listeners
 
 mode
 morphops mode: mode2d_Slice, mode2d_Stack, mode2d_Dataset, mode3d_Stack, mode3d_Dataset
 
 BatchOpt
 a structure compatible with batch operation, see more in the constructor .showWaitbar - logical, true - show, false - do not show the waitbar .ColorChannel - cell string Ch 1 or Ch 2... the color channel for thresholding
 
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 responsible for showing the Morphological operations for images window, available from MIB->Menu->Tools->Semi-automatic segmentation->Automatic black-and-white thresholding

How to use

// batch mode call, names of the fields can be seen in the alt-text of the widgets!
// see the class constructor for the full contents of the BatchOpt structure
BatchOpt.ColorChannel = {'Ch 1'}; // color channel for thresholding
BatchOpt.Mode = {'3D, Stack'}; // mode to use
BatchOpt.Method = {'Otsu'}; // thresholding algorithm
%BatchOpt.t = [1 1]; // time points, [t1, t2]
BatchOpt.z = [10 20]; // slices, [z1, z2]
BatchOpt.x = [10 120]; // slices, [z1, z2]
BatchOpt.Orientation = 2; // dataset orientation
obj.startController('mibHistThresController', [], BatchOpt); // provide BatchOpt as the 3rd parameter into the startController function of mibController class
BatchOpt
a structure compatible with batch operation, see more in the constructor .showWaitbar - logical,...
Definition mibHistThresController.m:79
obj.startController('mibHistThresController'); // standard call for GUI

or

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

Constructor & Destructor Documentation

◆ mibHistThresController()

mibHistThresController.mibHistThresController ( mibModel,
varargin )

Member Function Documentation

◆ closeWindow()

function mibHistThresController.closeWindow ( )

closing mibHistThresController window

References handle.isvalid, and handle.notify.

◆ continueBtn_Callback()

function mibHistThresController.continueBtn_Callback ( )

◆ Method_Callback()

function mibHistThresController.Method_Callback ( )

callback for change of obj.View.handles.Method

◆ previewBtn_Callback()

function mibHistThresController.previewBtn_Callback ( )

callback for press of obj.View.handles.previewBtn

References max, handle.notify, th_concavity(), th_entropy(), th_intermeans_iter(), th_intermodes(), th_maxlik(), th_mean(), th_median(), th_minerror(), th_minerror_iter(), th_minimum(), th_moments(), and th_ptile().

Here is the call graph for this function:

◆ returnBatchOpt()

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

◆ updateBatchOptFromGUI()

function mibHistThresController.updateBatchOptFromGUI ( hObject)

References updateBatchOptFromGUI_Shared().

Here is the call graph for this function:

◆ updateWidgets()

function mibHistThresController.updateWidgets ( )

update widgets of this window

References max, and updateGUIFromBatchOpt_Shared().

Here is the call graph for this function:

◆ ViewListner_Callback2()

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

Member Data Documentation

◆ BatchOpt

mibHistThresController.BatchOpt

a structure compatible with batch operation, see more in the constructor .showWaitbar - logical, true - show, false - do not show the waitbar .ColorChannel - cell string Ch 1 or Ch 2... the color channel for thresholding

◆ closeEvent

EVENT mibHistThresController.closeEvent

> Description of events event firing when window is closed

Events
closeEvent

◆ listener

mibHistThresController.listener

a cell array with handles to listeners

◆ mibModel

mibHistThresController.mibModel

handles to the model

Referenced by mibHistThresController().

◆ mode

mibHistThresController.mode

morphops mode: mode2d_Slice, mode2d_Stack, mode2d_Dataset, mode3d_Stack, mode3d_Dataset

◆ View

mibHistThresController.View

handle to the view


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