Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
mibAddText2Img_Legacy.m File Reference

Add text label to the image, an older function that does not use insertText and insertMarker functions from the Computer Vision System Toolbox. More...

Functions

function img = mibAddText2Img_Legacy (img, textArray, positionList, textTable, options)
 Add text label to the image, an older function that does not use insertText and insertMarker functions from the Computer Vision System Toolbox.
 

Detailed Description

Add text label to the image, an older function that does not use insertText and insertMarker functions from the Computer Vision System Toolbox.

Function Documentation

◆ mibAddText2Img_Legacy()

function img = mibAddText2Img_Legacy ( img,
textArray,
positionList,
textTable,
options )

Add text label to the image, an older function that does not use insertText and insertMarker functions from the Computer Vision System Toolbox.

Parameters
img- > image, 2D
textArray-> a cell array with text, [textArray{1}=label1; textArray{2}=label2;]
positionList-> position of a label [pointNo; x, y]
textTable-> a bitmap two color image with a table of letters (DejaVuSansMono.png); member of mibModel class
options-> a structure with optional additional parameters .color -> [optional, default color GREY] a number or a rgb-vector with a color for the text, for example: [1 0 0] - for red; or 0.5 - for grey .fontSize -> [optional, default font size=2] a number with a font size from 1 to 7, that corresponds to pt8, 10 ... 20 of DejaVu Sans Mono font. .markerText -> [an optional string, default both] when both show a label next to the position marker, when marker - show only the marker without the label, when text - show only text without marker
Return values
img-> image 2D
Required fields of options:

Examples:

textArray{1}='label1';
textArray{2}='label2';
positionList(1,:) = [50, 75];
positionList(2,:) = [150, 175];
options.color = [1 0 0];
options.fontSize = 3;
selection(:,:,5) = ib_addText2Img(selection(:,:,5), textArray, positionList, obj.mibModel.dejavufont, options); // add 2 labels to the selection layer

References max.

Referenced by mibAddScaleBar(), and mibAddText2Img().

Here is the caller graph for this function: