![]() |
Microscopy Image Browser 2.91
MIB
|
a controller class for the crop objects to file options of the context menu of the Get Statistics window More...
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 | |
![]() | |
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 crop objects to file options of the context menu of the Get Statistics window
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.
function mibCropObjectsController.closeWindow | ( | ) |
closing mibCropObjectsController window
References handle.isvalid, and handle.notify.
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.
function mibCropObjectsController.dirEdit_Callback | ( | ) |
a callback for obj.View.handles.dirEdit to select output directory
function mibCropObjectsController.generate3DPatches_Callback | ( | ) |
callback for selection of crop 3D objects checkbox
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.
function mibCropObjectsController.selectDirBtn_Callback | ( | ) |
a callback for press of obj.View.handles.selectDirBtn to select output directory
function mibCropObjectsController.updateBatchParameters | ( | type, | |
newValue ) |
update obj.mibStatisticsController.BatchOpt parameters
function mibCropObjectsController.updateWidgets | ( | ) |
update widgets of the window
|
static |
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().
EVENT mibCropObjectsController.closeEvent |
> Description of events event firing when window is closed
mibCropObjectsController.listener |
a cell array with handles to listeners
mibCropObjectsController.mibModel |
handles to the model
Referenced by mibCropObjectsController().
mibCropObjectsController.mibStatisticsController |
a handle to mibStatisticsController
Referenced by mibCropObjectsController().
mibCropObjectsController.outputDir |
output directory
mibCropObjectsController.outputVar |
output variable for export to Matlab
mibCropObjectsController.storedBatchOpt |
stored BatchOpt, because some of the parameters gets overwritten in the crop function
mibCropObjectsController.View |
handle to the view