![]() |
Microscopy Image Browser 2.91
MIB
|
Add text label to the image, a new function introduced in MIB 2.22. Requires insertText and insertMarker functions from the Computer Vision System Toolbox. When these functions are not available mibAddText2Img is using an old function. More...
Functions | |
function img = | mibAddText2Img (img, textArray, positionList, options) |
Add text label to the image, a new function introduced in MIB 2.22. Requires insertText and insertMarker functions from the Computer Vision System Toolbox. When these functions are not available mibAddText2Img is using an old function. | |
Add text label to the image, a new function introduced in MIB 2.22. Requires insertText and insertMarker functions from the Computer Vision System Toolbox. When these functions are not available mibAddText2Img is using an old function.
function img = mibAddText2Img | ( | img, | |
textArray, | |||
positionList, | |||
options ) |
Add text label to the image, a new function introduced in MIB 2.22. Requires insertText and insertMarker functions from the Computer Vision System Toolbox. When these functions are not available mibAddText2Img is using an old function.
img | image, 2D |
textArray | a cell array with text, [textArray{1}='label1'; textArray{2}='label2';] |
positionList | position of a label [pointNo; x, y] |
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 Ubuntu 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 .AnchorPoint text box reference point, 'LeftTop' (default) | 'LeftCenter' | 'LeftBottom' | 'CenterTop' | 'Center' | 'CenterBottom' | 'RightTop' | 'RightCenter' | 'RightBottom' |
img | image 2D |
Examples:
References mibAddText2Img_Legacy().
Referenced by mibMeasure.DistanceFun(), mibMeasure.DistancePolyFun(), mibModel.getRGBimage(), mibAboutController.mibAboutController(), and mibController.mibController().