![]() |
Microscopy Image Browser 2.91
MIB
|
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. | |
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 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.
I | RGB image that requires the scale bar |
pixSize | a structure with pixel size of the image, .x, .y, .z |
scale | scaling factor, i.e. how the pixel size is different from the pixSize structure |
Options | an 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 |
Examples:
References mibAddText2Img_Legacy(), and min.
Referenced by mibMakeMovieController.continueBtn_Callback(), mibMeasure.DistanceFun(), mibMeasure.DistancePolyFun(), and mibSnapshotController.snapshotBtn_Callback().