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

I = mibAddScaleBar(I, pixSize, scale, orientation, scaleBarHeight) add a scale bar to the image. Requires insertText and insertMarker functions from the Computer Vision System Toolbox. When these functions are not available is using an old function. More...

Functions

function I = mibAddScaleBar (I, pixSize, scale, Options)
 I = mibAddScaleBar(I, pixSize, scale, orientation, scaleBarHeight) add a scale bar to the image. Requires insertText and insertMarker functions from the Computer Vision System Toolbox. When these functions are not available is using an old function.
 

Detailed Description

I = mibAddScaleBar(I, pixSize, scale, orientation, scaleBarHeight) add a scale bar to the image. Requires insertText and insertMarker functions from the Computer Vision System Toolbox. When these functions are not available is using an old function.

Function Documentation

◆ mibAddScaleBar()

function I = mibAddScaleBar ( I,
pixSize,
scale,
Options )

I = mibAddScaleBar(I, pixSize, scale, orientation, scaleBarHeight) add a scale bar to the image. Requires insertText and insertMarker functions from the Computer Vision System Toolbox. When these functions are not available is using an old function.

Parameters
IRGB image that requires the scale bar
pixSizea structure with pixel size of the image, .x, .y, .z
scalescaling factor, i.e. how the pixel size is different from the pixSize structure
Optionsan optional structure with additional settings .orientation - orientation of the snapshot: 1, 2, 4 (default) .scaleBarHeight - height of the scale bar in pixels, minimal height is 22 pixels, default = [] .bgColor - background color, a single number from 0 (black) to 1 (while), default = 0 .textSuffix - string, additional text that should be added after the scale text
Required fields of Options:
Required fields of pixSize:

Examples:

I = mibAddScaleBar(I, pixSize, scale); // add scalebar
function I = mibAddScaleBar(I, pixSize, scale, Options)
I = mibAddScaleBar(I, pixSize, scale, orientation, scaleBarHeight) add a scale bar to the image....
Definition mibAddScaleBar.m:17

References mibAddText2Img_Legacy(), and min.

Referenced by mibMakeMovieController.continueBtn_Callback(), mibMeasure.DistanceFun(), mibMeasure.DistancePolyFun(), and mibSnapshotController.snapshotBtn_Callback().

Here is the call graph for this function:
Here is the caller graph for this function: