![]() |
Microscopy Image Browser 2.91
MIB
|
the main model class of MIB More...


Public Member Functions | |
| function BatchOptOut = | addFrame (BatchOpt) |
| Add a frame around the dataset see also mibModel.addFrameToImage function. | |
| function | clearMask (BatchOptIn) |
| clear the Mask layer | |
| function | clearSelection (sel_switch, BatchOptIn) |
| clear the Selection layer | |
| function | colorChannelActions (mode, channel1, channel2, BatchOptIn) |
| handling various color channel operations | |
| function | contentAwareFill (BatchOptIn) |
| Fill the selected area using content aware algorithms. | |
| function | contrastCLAHE (mode, colCh) |
| Do CLAHE Contrast-limited adaptive histogram equalization for the XY plane of the dataset for the currently shown or all slices. | |
| function | contrastNormalization (mode, BatchOptIn) |
| Normalize contrast between the layers of the dataset. | |
| function [ xOut , yOut ] = | convertDataToMouseCoordinates (x, y, mode, magFactor) |
| Convert coordinates of a pixel in the dataset to the coordinates of the mibView.handles.mibImageView axes. | |
| function [ xOut , yOut , zOut , tOut ] = | convertMouseToDataCoordinates (x, y, mode, permuteSw) |
| Convert coordinates under the mouse cursor to the coordinates of the dataset. | |
| function | convertModel (ModelType, BatchOptIn) |
| convert model to the specified type | |
| function | copySwapSlice (SourceSlice, TargetSlice, mode, BatchOptIn) |
| Copy/swap slice(s) within the dataset. | |
| function | createModel (ModelType, ModelMaterialNames, BatchOptIn) |
| Create a new model. | |
| function | deleteSlice (orientation, sliceNumber, BatchOptIn) |
| Delete a slice from the volume. | |
| function | dilateImage (BatchOptIn) |
| dilate image | |
| function | erodeImage (BatchOptIn) |
| erode image | |
| function | fillSelectionOrMask (sel_switch, type, BatchOptIn) |
| fill holes for selection or mask layers | |
| function [ axesX , axesY ] = | getAxesLimits (id) |
| get axes limits for the currently shown or id dataset | |
| function slice = | getData2D (type, slice_no, orient, col_channel, options, custom_img) |
| Get the a 2D slice with colors: height:width:colors. | |
| function dataset = | getData3D (type, time, orient, col_channel, options, custom_img) |
| Get the a 3D dataset with colors: height:width:colors:depth. | |
| function dataset = | getData4D (type, orient, col_channel, options, custom_img) |
| Get the a 4D dataset with colors: height:width:colors:depth:time. | |
| function varargout = | getImageMethod (methodName, id, varargin) |
| run desired method of the mibImage class | |
| function propertyValue = | getImageProperty (propertyName, id) |
| get desired property for the currently shown or id dataset | |
| function magFactor = | getMagFactor (id) |
| get magnification for the currently shown or id dataset | |
| function pixSize = | getPixSize (id) |
| get pixSize structure for the currently shown or id dataset | |
| function [ imgRGB , imgRAW ] = | getRGBimage (options, sImgIn) |
| Generate RGB image from all layers that have to be shown on the screen. | |
| function imgRGB = | getRGBvolume (img, options) |
| Generate RGB volume rendering image of the stack. | |
| function | flipDataset (mode, showWaitbar) |
| Flip dataset horizontally, vertically or in the Z direction. | |
| function | insertEmptySlice (BatchOptIn) |
| Insert an empty slice into the existing volume. | |
| function | interpolateImage (imgType, intType, BatchOptIn) |
interpolate mask, selection or model layer | |
| function result = | invertImage (mode, colChannel, Options) |
| invert image | |
| function | loadMask (mask, BatchOptIn) |
| load mask from a file or import when mask variable is provided | |
| function | loadModel (model, BatchOptIn) |
| load model from a file or import when model variable is provided | |
| function status = | materialsActions (action, BatchOptIn) |
| collection of actions related to materials of the model | |
| function status = | materialsSwapColors (BatchOptIn) |
| function | mibDoBackup (type, switch3d, storeOptions) |
| Store the dataset for Undo. | |
| function mibImg = | mibImageDeepCopy (fromId, toId, options) |
| copy mibImage class from one container to another; used in mibBufferToggleContext_Callback, duplicate | |
| function status = | modelExport (BatchOptIn) |
| export model or material of the model from MIB to exportTo | |
| function | moveLayers (SourceLayer, DestinationLayer, DatasetType, ActionType, BatchOptIn) |
| to move datasets between the layers (image, model, mask, selection) | |
| function | renameMaterial (BatchOptIn) |
| rename selected or any specified material of the model | |
| function | resliceDataset (sliceNumbers, orientation, BatchOptIn) |
| stride reslicing the dataset so that the selected slices are kept and all others are removed | |
| function | rotateDataset (mode, showWaitbar) |
| Rotate dataset in 90 or -90 degrees. | |
| function fnOut = | saveImageAsDialog (filename, BatchOptIn) |
| save image to a file | |
| function fnOut = | saveMask (filename, BatchOptIn) |
| save mask to a file | |
| function fnOut = | saveModel (filename, BatchOptIn) |
| save model to a file | |
| function | setAxesLimits (axesX, axesY, id) |
| set axes limits for the currently shown or id dataset | |
| function result = | setData2D (type, slice, slice_no, orient, col_channel, options) |
| set the 2D slice with colors: height:width:colors to the dataset | |
| function result = | setData3D (type, dataset, time, orient, col_channel, options) |
| set the 3D dataset with colors: height:width:colors:depth to the dataset | |
| function result = | setData4D (type, dataset, orient, col_channel, options) |
| result = setData4D(obj, type, dataset, orient, col_channel, options) Set complete 4D dataset with colors [height:width:colors:depth:time] | |
| function | setDefaultSegmentationColorPalette (paletteName, noColors) |
| set default color palette for materials of the model | |
| function | setImageProperty (propertyName, propertyValue, id) |
| set desired property for the currently shown or id dataset | |
| function | setMagFactor (magFactor, id) |
| set magnification for the currently shown or id dataset | |
| function | setPixSize (pixSize, id) |
| set pixSize structure for the currently shown or id dataset | |
| function | smoothImage (type, BatchOptIn) |
smooth Mask, Selection or Model layer | |
| function | transposeDataset (mode, showWaitbar, noColorChannels) |
| Transpose dataset physically between dimensions. | |
| function | transposeZ2T () |
| transpose Z to T dimension | |
| mibModel (cpuParallelLimit) | |
| function | reset () |
Public Attributes | |
| I | |
| variable for keeping instances of mibImage | |
| maxId | |
| maximal number of mibImage instances | |
| myPath | |
| current working directory | |
| U | |
| variable for Undo history | |
| connImaris | |
| a handle to Imaris connection | |
| cpuParallelLimit | |
| max number of parallel workers available | |
| disableSegmentation | |
| a switch 0/1 to disable segmentation tools while for example modifying ROIs | |
| displayedLutColors | |
| a matrix with the currently shown colors for the color channels (updated in mibController.redrawMibChannelMixerTable function) | |
| matlabVersion | |
| version of Matlab | |
| mibAnnMarkerEdit | |
a string with the mode to show the annotation: marker, label, value, label + value (default) | |
| mibAnnValueEccentricCheck | |
| enable value-eccentric annotations, 0 - annotation text first, value second; 1 - annotation value first, text - second | |
| mibAnnValuePrecision | |
| precision of annotation values, an integer from 0 and above | |
| mibHideImageCheck | |
| define whether or not dispay the image layer (used in obj.getRGBimage) a status of mibCpontroller.mibView.handles.mibHideImageCheck.Value | |
| mibLiveStretchCheck | |
| define whether or not stretch the image intensities (used in obj.getRGBimage) a status of mibCpontroller.mibView.handles.mibLiveStretchCheck.Value | |
| mibMaskShowCheck | |
| define whether or not dispay the mask layer (used in obj.getRGBimage) a status of mibCpontroller.mibView.handles.mibMaskShowCheck.Value | |
| mibModelShowCheck | |
| define whether or not dispay the model layer (used in obj.getRGBimage) a status of mibCpontroller.mibView.handles.mibModelShowCheck.Value | |
| mibPrevId | |
| id of the previously selected mibModel container | |
| mibPython | |
| link to python environment started from MIB | |
| mibShowAnnotationsCheck | |
| show or not the annotations | |
| mibShowLines3DCheck | |
| show or not 3D lines | |
| mibSegmShowTypePopup | |
| type of model visualization: 1 - filled; 2 - contour | |
| sessionSettings | |
| a structure with settings for some tools used during the current session of MIB .automaticAlignmentOptions -> a structure used in mibAlignmentController .guiImages - CData for images to be shown on some buttons | |
| storedSelection | |
| a buffer to store selection with press of Ctrl+C button, and restore with Ctrl+V | |
| preferences | |
| a structure with program preferences | |
| showAllMaterials | |
| a switch to show all materials of the model, or only a single one; defined in mibView.handles.mibSegmentationTable | |
| Id | |
| id of the currently shown dataset | |
| newDatasetSwitch | |
| a switch 0/1 which is changed when a new dataset is opened (updated in mibController.Listner2_Callback) | |
| EVENT | modelNotify |
generic notification event to make the list of listners smaller, call it as notify(obj, modelNotify, eventdata); see in mibModel.renameMaterial, mibModel.materialActions eventdata; motifyEvent.Name = has description of the event | |
| EVENT | changeSlice |
| change of a slice number using the slider | |
| EVENT | changeTime |
| change of a time point using the slider | |
| EVENT | keyPressEvent |
| event triggered by a child widget to call for key press callback of MIB | |
| EVENT | newDataset |
| loaded or imported a new dataset | |
| EVENT | newDatasetLite |
| loaded or imported a new dataset but without clearing the undo history | |
| EVENT | plotImage |
| ask to redraw the image from mibController | |
| EVENT | setData |
| when the set data method was used | |
| EVENT | showMask |
| an event that enables the obj.mibController.mibView.handles.mibMaskShowCheck.Value | |
| EVENT | showModel |
| an event that enables the obj.mibController.mibView.handles.mibModelShowCheck.Value; | |
| EVENT | stopProtocol |
| stop batch protocol from execution | |
| EVENT | syncBatch |
| synchromize structure for batch actions | |
| EVENT | undoneBackup |
| when the undo is triggered | |
| EVENT | updateId |
| updating Id | |
| EVENT | updateImgInfo |
| meta data was has been updated, works via obj.getImageMethod | |
| EVENT | updatedAnnotations |
| event that the annotation list has been updated for use with mibAnnotationsController | |
| EVENT | updatedLines3D |
| event that the lines3D class was updated for use with mibLines3DController | |
| EVENT | updateROI |
| event after change number of ROIs | |
| EVENT | updateSegmentationTable |
| update the segmentation table | |
| EVENT | updateGuiWidgets |
| event after update of GuiWidgets of mibController | |
| EVENT | updateLayerSlider |
| event to trigger update of mibView.handles.mibChangeLayerSlider based on provided value, see mibAnnotationController.tableContextMenu_cb | |
| EVENT | updateTimeSlider |
| event to trigger update of mibView.handles.mibTimeSlider based on provided value, see mibAnnotationController.tableContextMenu_cb | |
| EVENT | updateUserScore |
| event to trigger counting user scores | |
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. | |
the main model class of MIB
| mibModel.mibModel | ( | cpuParallelLimit | ) |
References cpuParallelLimit.
| function BatchOptOut = mibModel.addFrame | ( | BatchOpt | ) |
Add a frame around the dataset see also mibModel.addFrameToImage function.
| BatchOpt | an optional structure with parameters .FrameWidth - a string with a width of the frame .FrameHeight - a string with a height of the frame .IntensityPadValue - a string with intensity of the frame .Method - a cell string with one of these options {use the pad value, replicate, circular, symmetric} .Direction - a cell string with one of these options {both, pre, post} .showWaitbar - logical, show or not the waitbar |
| BatchOptOut | structure with parameters used in the function |
References handle.fieldnames, mibInputMultiDlg(), and handle.notify.

| function mibModel.clearMask | ( | BatchOptIn | ) |
clear the Mask layer
| BatchOptIn | [optional], a structure with extra parameters or settings for the batch processing mode, when NaN return a structure with default options via "syncBatch" event optional parameters
|
References handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.clearSelection | ( | sel_switch, | |
| BatchOptIn ) |
clear the Selection layer
| sel_switch | a string to define where selection should be cleared:
|
| BatchOptIn | [optional], a structure with extra parameters or settings for the batch processing mode, when NaN return a structure with default options via "syncBatch" event optional parameters
|
References handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.colorChannelActions | ( | mode, | |
| channel1, | |||
| channel2, | |||
| BatchOptIn ) |
handling various color channel operations
| mode | a string with the operation to perform 'Insert empty channel' - insert color channel 'Copy channel' - copy one color channel to another 'Shift channel' - shift color channel by dx/dy pixels 'Invert channel' - invert color channel 'Rotate channel' - rotate color channel 'Swap channels' - swap two color channels 'Delete channel' - delete color channel |
| channel1 | index of the first color channel |
| channel2 | index of the second color channel (for copy and swap modes) or rotation angle for the 'Rotate channel' mode |
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
Examples:
References max, mibInputMultiDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.contentAwareFill | ( | BatchOptIn | ) |
Fill the selected area using content aware algorithms.
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event Possible fields,
|
References mibInputMultiDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.contrastCLAHE | ( | mode, | |
| BatchOptIn ) |
Do CLAHE Contrast-limited adaptive histogram equalization for the XY plane of the dataset for the currently shown or all slices.
| mode | [optional], mode for use with CLAHE
|
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
References mibInputMultiDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.contrastNormalization | ( | target, | |
| BatchOptIn ) |
Normalize contrast between the layers of the dataset.
Time series, when BatchOpt.TimeSeriesNormalization = {Based on current 2D slice})| target | target for the normalization:
|
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
References max, mibInputMultiDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function [ xOut , yOut ] = mibModel.convertDataToMouseCoordinates | ( | x, | |
| y, | |||
| mode, | |||
| magFactor ) |
Convert coordinates of a pixel in the dataset to the coordinates of the mibView.handles.mibImageView axes.
| x | x - coordinate |
| y | y - coordinate |
| mode | a string that defines a mode of the shown image: shown (in most cases), or full (for panning) |
| magFactor | [optional], used to force magFactor, default obj.I.{obj.Id}.magFactor |
| xOut | x - coordinate with the dataset |
| yOut | y - coordinate with the dataset |
Examples:
References max.
Referenced by mibMeasure.addMeasurementsToPlot().

| function mibModel.convertModel | ( | ModelType, | |
| BatchOptIn ) |
convert model to the specified type
| ModelType | a double that specifies new type of the model, can be empty, default = 63
|
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
References handle.notify, and updateBatchOptCombineFields_Shared().

| function [ xOut , yOut , zOut , tOut ] = mibModel.convertMouseToDataCoordinates | ( | x, | |
| y, | |||
| mode, | |||
| permuteSw ) |
Convert coordinates under the mouse cursor to the coordinates of the dataset.
| x | x - coordinate |
| y | y - coordinate |
| mode | [optional] a string that defines a mode of the shown image, default is shown
|
| permuteSw | [optional], can be empty
|
| xOut | x - coordinate with the dataset |
| yOut | y - coordinate with the dataset |
| zOut | z - coordinate with the dataset |
| tOut | t - time coordinate |
Examples:
References max.
| function mibModel.copySwapSlice | ( | SourceSlice, | |
| TargetSlice, | |||
| mode, | |||
| BatchOptIn ) |
Copy/swap slice(s) within the dataset.
| SourceSlice | number of the source slice, can be empty: [] |
| TargetSlice | number of the destination slice |
| mode | a string with desired mode: 'replace' - replace the target slice with the source slice [default] 'insert' - insert the target slice before the source slice 'swap' - swap source and target slices |
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
Examples:
References mibInputMultiDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.createModel | ( | ModelType, | |
| ModelMaterialNames, | |||
| BatchOptIn ) |
Create a new model.
| ModelType | [optional], can be empty: []; a number with the model type:
|
| ModelMaterialNames | [optional] can be empty: []; a cell array with names of materials, this parameter is not used for ModelType > 255 |
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
Examples:
References mibSelectModelTypeDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.deleteSlice | ( | orientation, | |
| sliceNumber, | |||
| BatchOptIn ) |
Delete a slice from the volume.
| orientation | [optional], can be NaN (current orientation)
|
| sliceNumber | the number of the slice to delete, can be empty: [] |
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, the function variables are preferred over the BatchOptIn variables
|
Examples:
References mibInputMultiDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.dilateImage | ( | BatchOptIn | ) |
dilate image
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event Possible fields,
|
References max, min, handle.notify, uint32, and updateBatchOptCombineFields_Shared().

| function mibModel.erodeImage | ( | BatchOptIn | ) |
erode image
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event Possible fields,
|
References max, handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.fillSelectionOrMask | ( | sel_switch, | |
| type, | |||
| BatchOptIn ) |
fill holes for selection or mask layers
| sel_switch | a string that defines where filling of holes should be done:
|
| type | string with type of material selection, mask |
| BatchOptIn | [optional], a structure with extra parameters or settings for the batch processing mode, when NaN return a structure with default options via "syncBatch" event optional parameters
|
References max, handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.flipDataset | ( | mode, | |
| showWaitbar ) |
Flip dataset horizontally, vertically or in the Z direction.
Flip dataset and other layers in horizontal or vertical direction
| mode | -> a string that defines the flipping mode
|
| showWaitbar | logical, show or not the waitbar |
References handle.notify.
| function [ axesX , axesY ] = mibModel.getAxesLimits | ( | id | ) |
get axes limits for the currently shown or id dataset
| id | [optional], id of the dataset, otherwise the currently shown dataset (obj.mibModel.Id) |
| axesX | a vector [min, max] for the X |
| axesY | a vector [min, max] for the Y |
Examples:
| function slice = mibModel.getData2D | ( | type, | |
| slice_no, | |||
| orient, | |||
| col_channel, | |||
| options, | |||
| custom_img ) |
Get the a 2D slice with colors: height:width:colors.
| type | type of the slice to retrieve, image, model,mask, selection, custom (custom indicates to use custom_img as the dataset), everything(model,mask and selection for imageData.model_type=='uint6' only) |
| slice_no | [optional], an index of the slice to show, when NaN will show the current slice |
| orient | [optional], can be NaN
|
| col_channel | [optional], can be NaN
|
| options | [optional], a structure with extra parameters
|
| custom_img | [optional], can be NaN; the function return a slice not from the imageData class but from this custom_img, requires to specify the custom type. custom_img should be a 3D dataset. |
| slice | a cell array with 2D image with colors. For the image type: {roiId}[1:height, 1:width, 1:colors]; for all other types: {roiId}[1:height, 1:width] |
Examples:
| function dataset = mibModel.getData3D | ( | type, | |
| time, | |||
| orient, | |||
| col_channel, | |||
| options, | |||
| custom_img ) |
Get the a 3D dataset with colors: height:width:colors:depth.
| type | type of the slice to retrieve, image, model,mask, selection, custom (custom indicates to use custom_img as the dataset), everything(model,mask and selection for imageData.model_type=='uint6' only) |
| time | [optional], an index of the time point to show, when NaN gets the dataset for the current time point |
| orient | [optional], can be NaN
|
| col_channel | [optional], can be NaN
|
| options | [optional], a structure with extra parameters
|
| custom_img | [optional], can be NaN; the function return a slice not from the imageData class but from this custom_img, requires to specify the custom type. custom_img should be a 3D dataset. |
| dataset | a cell array with 3D dataset with colors. For the image type: {roiId}[1:height, 1:width, 1:colors, 1:depth]; for all other types: {roiId}[1:height, 1:width, 1:depth] |
Examples:
References max.
| function dataset = mibModel.getData4D | ( | type, | |
| orient, | |||
| col_channel, | |||
| options, | |||
| custom_img ) |
Get the a 4D dataset with colors: height:width:colors:depth:time.
| type | type of the slice to retrieve, image, model,mask, selection, custom (custom indicates to use custom_img as the dataset), everything(model,mask and selection for imageData.model_type=='uint6' only) |
| orient | [optional], can be NaN
|
| col_channel | [optional], can be NaN
|
| options | [optional], a structure with extra parameters
|
| custom_img | [optional], can be NaN; the function return a slice not from the imageData class but from this custom_img, requires to specify the custom type. custom_img should be a 3D dataset. |
| dataset | a cell array with 2D image with colors. For the image type: {roiId}[1:height, 1:width, 1:colors, 1:depth, 1:time]; for all other types: {roiId}[1:height, 1:width, 1:depth, 1:time] |
Examples:
References max.
| function varargout = mibModel.getImageMethod | ( | methodName, | |
| id, | |||
| varargin ) |
run desired method of the mibImage class
Using this function the syntax result = obj.mibModel.I{obj.mibModel.I}.methodName can be written as obj.mibModel.getImageMethod(methodName)
| methodName | a string with name of the mibImage method to run |
| id | [optional], id of the dataset, when NaN the currently shown dataset (obj.Id) |
| varargin | list of parameters for the method to call |
| varargout | output results |
Examples:
References handle.notify.
| function propertyValue = mibModel.getImageProperty | ( | propertyName, | |
| id ) |
get desired property for the currently shown or id dataset
| propertyName | a string with property name for mibImage class |
| id | [optional], id of the dataset, otherwise the currently shown dataset (obj.Id) |
| propertyValue | a value for the desired property, or empty |
Examples:
| function magFactor = mibModel.getMagFactor | ( | id | ) |
get magnification for the currently shown or id dataset
| id | [optional], id of the dataset, otherwise the currently shown dataset (obj.Id) |
| magFactor | magnification factor |
Examples:
| function pixSize = mibModel.getPixSize | ( | id | ) |
get pixSize structure for the currently shown or id dataset
| id | [optional], id of the dataset, otherwise the currently shown dataset (obj.Id) |
| pixSize | a structure with diminsions of voxels, .x .y .z .t .tunits .units
|
Examples:
| function [ imgRGB , imgRAW ] = mibModel.getRGBimage | ( | options, | |
| sImgIn ) |
Generate RGB image from all layers that have to be shown on the screen.
| options | a structure with extra parameters:
|
| sImgIn | a custom 3D stack to grab a single 2D slice from |
| imgRGB | - RGB image with combined layers, [1:height, 1:width, 1:3] |
| imgRAW | - RAW image, used only when mibImage.Virtual.virtual == 1, i.e. in the virtual stacking mode |
References B(), M, max, mibAddText2Img(), min, and uint32.

| function imgRGB = mibModel.getRGBvolume | ( | img, | |
| options ) |
Generate RGB volume rendering image of the stack.
| img | 3D/4D stack [y,x,c,z] |
| options | a structure with extra parameters:
|
| imgRGB | - RGB image with combined layers, [1:height, 1:width, 1:3] |
References B(), min, and render().

| function mibModel.insertEmptySlice | ( | BatchOptIn | ) |
Insert an empty slice into the existing volume.
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event
|
Examples:
References mibInputMultiDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.interpolateImage | ( | imgType, | |
| intType, | |||
| BatchOptIn ) |
interpolate mask, selection or model layer
| imgType | a string with type of the layer for the interpolation
|
| intType | a string with type of the interpolation algorithm to use
|
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
References mibInterpolateLines(), mibInterpolateShapes(), handle.notify, and updateBatchOptCombineFields_Shared().

| function result = mibModel.invertImage | ( | mode, | |
| colChannel, | |||
| Options ) |
invert image
| mode | a string that defines part of the dataset to be inverted
|
| colChannel | [optional] a list of color channels to invert; 0 to invert all color channels, NaN to invert shown color channels |
| Options | a structure with additional parameters .t - a vector with time points to take [t1 t2] .z - a vector with slice numbers to take [z1 z2] .showWaitbar - logical, show or not the waitbar
|
| result | [logical], result of the operation 1-success, 0-fail |
References max, and handle.notify.
| function mibModel.loadMask | ( | mask, | |
| BatchOptIn ) |
load mask from a file or import when mask variable is provided
| mask | [optional], a matrix contaning a mask to load [1:obj.height, 1:obj.width, 1:obj.no_stacks, 1:obj.time] |
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
Examples:
References amiraLabels2bitmap(), handle.fieldnames, mib_uigetfile(), mibLoadImages(), handle.notify, handle.permute, handle.sort, and updateBatchOptCombineFields_Shared().

| function mibModel.loadModel | ( | model, | |
| BatchOptIn ) |
load model from a file or import when model variable is provided
| model | [optional], a matrix contaning a model to load [1:obj.height, 1:obj.width, 1:obj.color, 1:obj.no_stacks, 1:obj.time] |
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
Examples:
References amiraLabels2bitmap(), handle.fieldnames, getAmiraMeshHeader(), M, max, maxId, mib_uigetfile(), mibLoadImages(), min, handle.notify, nrrdLoadWithMetadata(), handle.permute, handle.sort, uint32, and updateBatchOptCombineFields_Shared().

| function status = mibModel.materialsActions | ( | action, | |
| BatchOptIn ) |
collection of actions related to materials of the model
| action | string with desired action to do, one of those listed below. Provide only this parameter for the interactive behavior |
| BatchOptIn | [optional] a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details; default values in BatchOpt below are overriden by settings from BatchOptIn
|
| status | logical status of the function |
Examples:
References max, mibInputMultiDlg(), mibQuestDlg(), handle.notify, handle.reshape, and updateBatchOptCombineFields_Shared().

| function status = mibModel.materialsSwapColors | ( | BatchOptIn | ) |
Examples:
References mibInputMultiDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.mibDoBackup | ( | type, | |
| switch3d, | |||
| getDataOptions ) |
Store the dataset for Undo.
The dataset is stored in imageUndo class
| type | 'image', 'selection', 'mask', 'model', labels, 'everything' (for mibImage.modelType==63 only), 'lines3d', 'labels', 'mibImage' |
| switch3d | - a switch to define a 2D or 3D mode to store the dataset dataset
|
| getDataOptions | - an optional structure with extra parameters
|
Examples:
| function mibImg = mibModel.mibImageDeepCopy | ( | fromId, | |
| toId, | |||
| options ) |
copy mibImage class from one container to another; used in mibBufferToggleContext_Callback, duplicate
| fromId | [optional] - index of the original dataset, default obj.Id; fromId can also be an instance of mibImage class |
| toId | index of the dataset to where copy the image, when omitted, the resulting image will be exported to return variable mibImg |
| options | [optional] - structure with additional parameters
|
| mibImg | a deep copy of the image in fromId; exported only when toId is missing |
| function status = mibModel.modelExport | ( | BatchOptIn | ) |
export model or material of the model from MIB to exportTo
| BatchOptIn | [optional] a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details; default values in BatchOpt below are overriden by settings from BatchOptIn, when BatchOptIn.batchModeFlag==true, no question asked
|
| status | logical status of the function |
Examples:
References mibInputMultiDlg(), mibSetImarisDataset(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.moveLayers | ( | SourceLayer, | |
| DestinationLayer, | |||
| DatasetType, | |||
| ActionType, | |||
| BatchOptIn ) |
to move datasets between the layers (image, model, mask, selection)
for example, to move selection to mask, or selection to a specified material of the model
| SourceLayer | name of a layer to get data, 'selection', 'mask', or 'model', can be empty [] |
| DestinationLayer | name of a layer to set data, 'selection', 'mask', or 'model', can be empty [] |
| DatasetType | a string, can be empty []
|
| ActionType | a type of the desired action, can be empty []
|
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
Examples:
References handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.renameMaterial | ( | BatchOptIn | ) |
rename selected or any specified material of the model
| BatchOptIn | [optional], a structure with extra parameters or settings for the batch processing mode, when NaN return a structure with default options via "syncBatch" event optional parameters
|
References max, mibInputDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.reset | ( | ) |
| function mibModel.resliceDataset | ( | sliceNumbers, | |
| orientation, | |||
| BatchOptIn ) |
stride reslicing the dataset so that the selected slices are kept and all others are removed
| sliceNumbers | [string] the number of the slices to keep, can be a range in MATLAB format as 1:10:end to keep each 10th slice, can be empty: [] |
| orientation | [optional], can be NaN (current orientation)
|
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, the function variables are preferred over the BatchOptIn variables
|
Examples:
References mibInputMultiDlg(), handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.rotateDataset | ( | mode, | |
| showWaitbar ) |
Rotate dataset in 90 or -90 degrees.
Rotate dataset in 90 or -90 degrees
| mode | -> a string that defines the rotation
|
| showWaitbar | logical, show or not the waitbar |
References handle.notify.
| function fnOut = mibModel.saveImageAsDialog | ( | filename, | |
| BatchOptIn ) |
save image to a file
| filename | [optional] a string with filename, when empty asks for a dialog when provided the extension will define the output format, unless the format is provided in the BatchOptIn structure |
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
| fnOut | a string with the output filename |
References handle.notify, and updateBatchOptCombineFields_Shared().

| function fnOut = mibModel.saveMask | ( | filename, | |
| BatchOptIn ) |
save mask to a file
| filename | string with output filename, when empty a save as dialog is prompted a string, otherwise save the mask in the detected format. Additional settings may be provided via BatchOptIn structure |
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables |
| fnOut | a string with the output mask filename |
References handle.notify, and updateBatchOptCombineFields_Shared().

| function fnOut = mibModel.saveModel | ( | filename, | |
| BatchOptIn ) |
save model to a file
| filename | string with output filename, when empty a save as dialog is prompted a string, otherwise save the model in the detected format. Additional settings may be provided via BatchOptIn structure |
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables |
| fnOut | a string with the output model filename |
References handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.setAxesLimits | ( | axesX, | |
| axesY, | |||
| id ) |
set axes limits for the currently shown or id dataset
| id | [optional], id of the dataset, otherwise the currently shown dataset (obj.Id) |
| axesX | a vector [min, max] for the X |
| axesY | a vector [min, max] for the Y |
Examples:
| function result = mibModel.setData2D | ( | type, | |
| slice, | |||
| slice_no, | |||
| orient, | |||
| col_channel, | |||
| options ) |
set the 2D slice with colors: height:width:colors to the dataset
| type | type of the slice to set, image, model,mask, selection, custom (custom indicates to use custom_img as the dataset), everything(model,mask and selection for imageData.model_type=='uint6' only) |
| slice | 2D image with colors
|
| slice_no | [optional], an index of the slice to update, when NaN updates the current slice |
| orient | [optional], can be NaN
|
| col_channel | [optional], can be NaN
|
| options | [optional], a structure with extra parameters
|
| result | 1-success, 1-fail, result of function execution |
Examples:
References handle.notify.
| function result = mibModel.setData3D | ( | type, | |
| dataset, | |||
| time, | |||
| orient, | |||
| col_channel, | |||
| options ) |
set the 3D dataset with colors: height:width:colors:depth to the dataset
| type | type of the dataset to set, image, model,mask, selection, custom (custom indicates to use custom_img as the dataset), everything(model,mask and selection for imageData.model_type=='uint6' only) |
| dataset | a 3D image with colors
|
| time | [optional], an index of the time point to show, when NaN gets the dataset for the current time point |
| orient | [optional], can be NaN
|
| col_channel | [optional], can be NaN
|
| options | [optional], a structure with extra parameters
|
| result | -> 1 - success, 0 - error |
Examples:
References max.
| function result = mibModel.setData4D | ( | type, | |
| dataset, | |||
| orient, | |||
| col_channel, | |||
| options ) |
result = setData4D(obj, type, dataset, orient, col_channel, options) Set complete 4D dataset with colors [height:width:colors:depth:time]
| type | type of the dataset to update, image, model,mask, selection, or everything (model,mask and selection for imageData.model_type=='uint6' only) |
| dataset | 4D or 5D stack.
|
| orient | [optional], can be NaN
|
| col_channel | [optional],
|
| options | [optional], a structure with extra parameters
|
| result | -> 1 - success, 0 - error |
Examples:
| function mibModel.setDefaultSegmentationColorPalette | ( | paletteName, | |
| colorsNo ) |
set default color palette for materials of the model
| paletteName | string with the name of the palette to use, see below for the options |
| colorsNo | [optional], numeric, number of required color channels |
Examples:
References mibGenerateDefaultSegmentationPalette(), mibInputDlg(), and handle.notify.

| function mibModel.setImageProperty | ( | propertyName, | |
| propertyValue, | |||
| id ) |
set desired property for the currently shown or id dataset
| propertyName | a string with property name for mibImage class |
| propertyValue | a value for the desired property |
| id | [optional], id of the dataset, otherwise the currently shown dataset (obj.Id) |
Examples:
| function mibModel.setMagFactor | ( | magFactor, | |
| id ) |
set magnification for the currently shown or id dataset
| magFactor | magnification factor |
| id | [optional], id of the dataset, otherwise the currently shown dataset (obj.Id) |
Examples:
| function mibModel.setPixSize | ( | pixSize, | |
| id ) |
set pixSize structure for the currently shown or id dataset
| pixSize | a structure with diminsions of voxels, .x .y .z .t .tunits .units
|
| id | [optional], id of the dataset, otherwise the currently shown dataset (obj.Id) |
Examples:
| function mibModel.smoothImage | ( | type, | |
| BatchOptIn ) |
smooth Mask, Selection or Model layer
| type | a string with type of the layer for the smoothing
|
| BatchOptIn | a structure for batch processing mode, when NaN return a structure with default options via "syncBatch" event, see Declaration of the BatchOpt structure below for details, the function variables are preferred over the BatchOptIn variables
|
References mibDoImageFiltering(), mibInputMultiDlg(), min, handle.notify, and updateBatchOptCombineFields_Shared().

| function mibModel.transposeDataset | ( | mode, | |
| showWaitbar, | |||
| noColorChannels ) |
Transpose dataset physically between dimensions.
| mode | -> a string that defines the transpose dimension
|
| showWaitbar | logical, show or not the waitbar |
| noColorChannels | numeric, a number of color channels for the 'Transpose Z->C' mode; provide NaN to generate as many color channels as Z-sections Return values: |
References handle.notify, and handle.permute.
| function mibModel.transposeZ2T | ( | ) |
transpose Z to T dimension
References handle.permute.
| EVENT mibModel.changeSlice |
change of a slice number using the slider
| EVENT mibModel.changeTime |
change of a time point using the slider
| mibModel.connImaris |
a handle to Imaris connection
| mibModel.cpuParallelLimit |
max number of parallel workers available
Referenced by mibModel().
| mibModel.disableSegmentation |
a switch 0/1 to disable segmentation tools while for example modifying ROIs
| mibModel.displayedLutColors |
a matrix with the currently shown colors for the color channels (updated in mibController.redrawMibChannelMixerTable function)
| mibModel.I |
variable for keeping instances of mibImage
| mibModel.Id |
id of the currently shown dataset
SetObservable set to true. | EVENT mibModel.keyPressEvent |
event triggered by a child widget to call for key press callback of MIB
| mibModel.matlabVersion |
version of Matlab
| mibModel.maxId |
maximal number of mibImage instances
Referenced by loadModel().
| mibModel.mibAnnMarkerEdit |
a string with the mode to show the annotation: marker, label, value, label + value (default)
| mibModel.mibAnnValueEccentricCheck |
enable value-eccentric annotations, 0 - annotation text first, value second; 1 - annotation value first, text - second
| mibModel.mibAnnValuePrecision |
precision of annotation values, an integer from 0 and above
| mibModel.mibHideImageCheck |
define whether or not dispay the image layer (used in obj.getRGBimage) a status of mibCpontroller.mibView.handles.mibHideImageCheck.Value
| mibModel.mibLiveStretchCheck |
define whether or not stretch the image intensities (used in obj.getRGBimage) a status of mibCpontroller.mibView.handles.mibLiveStretchCheck.Value
| mibModel.mibMaskShowCheck |
define whether or not dispay the mask layer (used in obj.getRGBimage) a status of mibCpontroller.mibView.handles.mibMaskShowCheck.Value
| mibModel.mibModelShowCheck |
define whether or not dispay the model layer (used in obj.getRGBimage) a status of mibCpontroller.mibView.handles.mibModelShowCheck.Value
| mibModel.mibPrevId |
id of the previously selected mibModel container
| mibModel.mibPython |
link to python environment started from MIB
| mibModel.mibSegmShowTypePopup |
type of model visualization: 1 - filled; 2 - contour
| mibModel.mibShowAnnotationsCheck |
show or not the annotations
Referenced by mibMeasure.addMeasurementsToPlot().
| mibModel.mibShowLines3DCheck |
show or not 3D lines
| EVENT mibModel.modelNotify |
generic notification event to make the list of listners smaller, call it as notify(obj, modelNotify, eventdata); see in mibModel.renameMaterial, mibModel.materialActions eventdata; motifyEvent.Name = has description of the event
| mibModel.myPath |
current working directory
| EVENT mibModel.newDataset |
loaded or imported a new dataset
| EVENT mibModel.newDatasetLite |
loaded or imported a new dataset but without clearing the undo history
| mibModel.newDatasetSwitch |
a switch 0/1 which is changed when a new dataset is opened (updated in mibController.Listner2_Callback)
SetObservable set to true. | EVENT mibModel.plotImage |
ask to redraw the image from mibController
| mibModel.preferences |
a structure with program preferences
| mibModel.sessionSettings |
a structure with settings for some tools used during the current session of MIB .automaticAlignmentOptions -> a structure used in mibAlignmentController .guiImages - CData for images to be shown on some buttons
| EVENT mibModel.setData |
when the set data method was used
| mibModel.showAllMaterials |
a switch to show all materials of the model, or only a single one; defined in mibView.handles.mibSegmentationTable
| EVENT mibModel.showMask |
an event that enables the obj.mibController.mibView.handles.mibMaskShowCheck.Value
| EVENT mibModel.showModel |
an event that enables the obj.mibController.mibView.handles.mibModelShowCheck.Value;
| EVENT mibModel.stopProtocol |
stop batch protocol from execution
| mibModel.storedSelection |
a buffer to store selection with press of Ctrl+C button, and restore with Ctrl+V
| EVENT mibModel.syncBatch |
synchromize structure for batch actions
| mibModel.U |
variable for Undo history
| EVENT mibModel.undoneBackup |
when the undo is triggered
| EVENT mibModel.updatedAnnotations |
event that the annotation list has been updated for use with mibAnnotationsController
| EVENT mibModel.updatedLines3D |
event that the lines3D class was updated for use with mibLines3DController
| EVENT mibModel.updateGuiWidgets |
event after update of GuiWidgets of mibController
| EVENT mibModel.updateId |
updating Id
| EVENT mibModel.updateImgInfo |
meta data was has been updated, works via obj.getImageMethod
| EVENT mibModel.updateLayerSlider |
event to trigger update of mibView.handles.mibChangeLayerSlider based on provided value, see mibAnnotationController.tableContextMenu_cb
| EVENT mibModel.updateROI |
event after change number of ROIs
| EVENT mibModel.updateSegmentationTable |
update the segmentation table
| EVENT mibModel.updateTimeSlider |
event to trigger update of mibView.handles.mibTimeSlider based on provided value, see mibAnnotationController.tableContextMenu_cb
| EVENT mibModel.updateUserScore |