![]() |
Microscopy Image Browser
1.233
|
class is resposnible for keeping Labels/Annotations of the model More...
Public Member Functions | |
Labels () | |
Constructor for the class. More... | |
function | clearContents () |
Set all elements of the class to default values. More... | |
function | crop (cropF) |
Recalculation of annotation positions during image crop. More... | |
function [
labelsList , labelPositions , indices ] = | getCurrentSliceLabels (handles) |
[labelsList, labelPositions] = getCurrentSliceLabels(obj, handles) Get list of labels shown at the current slice More... | |
function [
labelsList , labelPositions , indices ] = | getLabels (rangeZ, rangeX, rangeY, rangeT) |
Get list of labels. More... | |
function
labelsNumber = | getLabelsNumber () |
Get total number of labels. More... | |
function [
labelsList , labelPositions , indices ] = | getSliceLabels (handles, sliceNumber, timePoint) |
[labelsList, labelPositions, indices] = getSliceLabels(obj, handles, sliceNumber, timePoint) Get list of labels shown at the specified slice More... | |
function | removeLabels (labels) |
removeLabels(obj, labels) Remove specified labels More... | |
function | replaceLabels (labels, positions) |
replaceLabels(obj, labels, positions) Replace existing labels with a new list of labels More... | |
function result = | updateLabels (oldLabel, newLabelText, newLabelPos) |
Update specified labels with newLabels. More... | |
Public Attributes | |
labelText | |
a cell array with labels More... | |
labelPosition | |
a matrix with coordinates of the labels [pointIndex, z x y t] More... | |
class is resposnible for keeping Labels/Annotations of the model
Labels.Labels | ( | ) |
Constructor for the class.
Constructor for the Labels class. Create a new instance of the class with default parameters
function Labels.clearContents | ( | ) |
Set all elements of the class to default values.
Examples:
Examples:
function Labels.crop | ( | cropF | ) |
Recalculation of annotation positions during image crop.
cropF | a vector [x1, y1, dx, dy, z1, dz, t1, dt] with parameters of the crop. Note! The units are pixels! Parameters t1 and dt are optional! |
Examples:
function [ labelsList , labelPositions , indices ] = Labels.getCurrentSliceLabels | ( | handles | ) |
[labelsList, labelPositions] = getCurrentSliceLabels(obj, handles) Get list of labels shown at the current slice
handles | a handles structure of im_browser |
labelsList | a cell array with labels |
labelPositions | a matrix with coordinates of the labels [labelIndex, z x y t] |
indices | indices of the labels |
Examples:
Referenced by getSliceLabels().
function [ labelsList , labelPositions , indices ] = Labels.getLabels | ( | rangeZ, | |
rangeX, | |||
rangeY, | |||
rangeT | |||
) |
Get list of labels.
rangeZ | [optional] define range of labels to retrieve for Z [minZ maxZ], can be NaN |
rangeX | [optional] define range of labels to retrieve for X [minX maxX], can be NaN |
rangeY | [optional] define range of labels to retrieve for Y [minY maxY], can be NaN |
rangeT | [optional] define range of labels to retrieve for T [minT maxT], can be NaN |
labelsList | a cell array with labels |
labelPositions | a matrix with coordinates of the labels [labelIndex, z x y t] |
indices | indices of the labels |
Examples:
function labelsNumber = Labels.getLabelsNumber | ( | ) |
Get total number of labels.
labelsNumber | a number of labels |
Examples:
function [ labelsList , labelPositions , indices ] = Labels.getSliceLabels | ( | handles, | |
sliceNumber, | |||
timePoint | |||
) |
[labelsList, labelPositions, indices] = getSliceLabels(obj, handles, sliceNumber, timePoint) Get list of labels shown at the specified slice
handles | a handles structure of im_browser |
sliceNumber | [], a slice number to get labels |
timePoint | [], a time point to get the labels |
labelsList | a cell array with labels |
labelPositions | a matrix with coordinates of the labels [labelIndex, z x y] |
indices | indices of the labels |
Examples:
References getCurrentSliceLabels().
function Labels.removeLabels | ( | labels | ) |
removeLabels(obj, labels) Remove specified labels
labels | a variable or a vector with a label:
|
Examples:
function Labels.replaceLabels | ( | labels, | |
positions | |||
) |
replaceLabels(obj, labels, positions) Replace existing labels with a new list of labels
labels | a cell array with labels |
positions | % a matrix with coordinates of the labels [pointIndex, x, y, z, t] |
Examples:
function result = Labels.updateLabels | ( | oldLabel, | |
newLabelText, | |||
newLabelPos | |||
) |
Update specified labels with newLabels.
oldLabel | a variable or a vector with an old label to be updated:
|
newLabelText | % a cell or a char string with new text for the label |
newLabelPos | % coordinates of the new label [z, x, y] |
result | result of the function work: 1 - good, 0 - bad |
Examples:
Labels.labelPosition |
a matrix with coordinates of the labels [pointIndex, z x y t]
Labels.labelText |
a cell array with labels