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

a controller class for the crop objects to file options of the context menu of the Get Statistics window More...

Inheritance diagram for mibCropObjectsController:
Collaboration diagram for mibCropObjectsController:

Public Member Functions

 mibCropObjectsController (mibModel, mibStatisticsController, batchModeSwitch, annotationLabels)
 constructor of the class Parameters: mibStatisticsController: a handle to the mibStatisticsController class batchModeSwitch: a logical switch to use the batch mode instead of GUI mode annotationLabels: structure with additional information about annotations .names - cell array with label (annotation) names .positions - matrix with center coordinates of patches to be cropped out from the image, it is used by mibAnnotationsController. Format: [pntId][z, x, y, t]
 
function  closeWindow ()
 closing mibCropObjectsController window
 
function  updateWidgets ()
 update widgets of the window
 
function  generate3DPatches_Callback ()
 callback for selection of crop 3D objects checkbox
 
function  selectDirBtn_Callback ()
 a callback for press of obj.View.handles.selectDirBtn to select output directory
 
function  dirEdit_Callback ()
 a callback for obj.View.handles.dirEdit to select output directory
 
function  updateBatchParameters (type, newValue)
 update obj.mibStatisticsController.BatchOpt parameters
 
function  generatePatches ()
 generate image patches using annotations as center coordinates. The coordinates are provided in obj.annotationLabels as structure with .names - cell array with label (annotation) names .positions - matrix with center coordinates of patches to be cropped out from the image, it is used by mibAnnotationsController.
 
function  cropBtn_Callback (batchModeSwitch)
 a callback for press of obj.View.handles.cropBtn to start cropping
Parameters: batchModeSwitch: a logical switch indicating start of the function using the batch mode
 

Static Public Member Functions

static function  ViewListner_Callback (obj, src, evnt)
 

Public Attributes

 mibModel
 handles to the model
 
 mibStatisticsController
 a handle to mibStatisticsController
 
 View
 handle to the view
 
 listener
 a cell array with handles to listeners
 
 outputDir
 output directory
 
 outputVar
 output variable for export to Matlab
 
 storedBatchOpt
 stored BatchOpt, because some of the parameters gets overwritten in the crop function
 
 annotationLabels
 structure with additional information about annotations .names - cell array with label (annotation) names .positions - matrix with center coordinates of patches to be cropped out from the image, it is used by mibAnnotationsController. Format: [pntId][z, x, y, t]
 
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 crop objects to file options of the context menu of the Get Statistics window

Constructor & Destructor Documentation

◆ mibCropObjectsController()

mibCropObjectsController.mibCropObjectsController ( mibModel,
mibStatisticsController,
batchModeSwitch,
annotationLabels )

constructor of the class Parameters: mibStatisticsController: a handle to the mibStatisticsController class batchModeSwitch: a logical switch to use the batch mode instead of GUI mode annotationLabels: structure with additional information about annotations .names - cell array with label (annotation) names .positions - matrix with center coordinates of patches to be cropped out from the image, it is used by mibAnnotationsController. Format: [pntId][z, x, y, t]

References handle.addlistener, annotationLabels, mibModel, and mibStatisticsController.

Member Function Documentation

◆ closeWindow()

function mibCropObjectsController.closeWindow ( )

closing mibCropObjectsController window

References handle.isvalid, and handle.notify.

◆ cropBtn_Callback()

function mibCropObjectsController.cropBtn_Callback ( batchModeSwitch)

a callback for press of obj.View.handles.cropBtn to start cropping
Parameters: batchModeSwitch: a logical switch indicating start of the function using the batch mode

References bitmap2amiraLabels(), bitmap2amiraMesh(), bitmap2nrrd(), max, mibImage2mrc(), mibImage2tiff(), mibUpdatePixSizeAndResolution(), min, handle.reshape, and handle.sort.

Here is the call graph for this function:

◆ dirEdit_Callback()

function mibCropObjectsController.dirEdit_Callback ( )

a callback for obj.View.handles.dirEdit to select output directory

◆ generate3DPatches_Callback()

function mibCropObjectsController.generate3DPatches_Callback ( )

callback for selection of crop 3D objects checkbox

◆ generatePatches()

function mibCropObjectsController.generatePatches ( )

generate image patches using annotations as center coordinates. The coordinates are provided in obj.annotationLabels as structure with .names - cell array with label (annotation) names .positions - matrix with center coordinates of patches to be cropped out from the image, it is used by mibAnnotationsController.

References bitmap2amiraLabels(), bitmap2amiraMesh(), bitmap2nrrd(), max, mibImage2mrc(), mibImage2tiff(), mibInputMultiDlg(), mibUpdatePixSizeAndResolution(), and handle.reshape.

Here is the call graph for this function:

◆ selectDirBtn_Callback()

function mibCropObjectsController.selectDirBtn_Callback ( )

a callback for press of obj.View.handles.selectDirBtn to select output directory

◆ updateBatchParameters()

function mibCropObjectsController.updateBatchParameters ( type,
newValue )

update obj.mibStatisticsController.BatchOpt parameters

◆ updateWidgets()

function mibCropObjectsController.updateWidgets ( )

update widgets of the window

◆ ViewListner_Callback()

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

Member Data Documentation

◆ annotationLabels

mibCropObjectsController.annotationLabels

structure with additional information about annotations .names - cell array with label (annotation) names .positions - matrix with center coordinates of patches to be cropped out from the image, it is used by mibAnnotationsController. Format: [pntId][z, x, y, t]

Referenced by mibCropObjectsController().

◆ closeEvent

EVENT mibCropObjectsController.closeEvent

> Description of events event firing when window is closed

Events
closeEvent

◆ listener

mibCropObjectsController.listener

a cell array with handles to listeners

◆ mibModel

mibCropObjectsController.mibModel

handles to the model

Referenced by mibCropObjectsController().

◆ mibStatisticsController

mibCropObjectsController.mibStatisticsController

◆ outputDir

mibCropObjectsController.outputDir

output directory

◆ outputVar

mibCropObjectsController.outputVar

output variable for export to Matlab

◆ storedBatchOpt

mibCropObjectsController.storedBatchOpt

stored BatchOpt, because some of the parameters gets overwritten in the crop function

◆ View

mibCropObjectsController.View

handle to the view


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