![]() |
Microscopy Image Browser 2.91
MIB
|
Calculate length of the curve objects in the slice. More...
Functions | |
function STATS = | mibCalcCurveLength (slice, pixSize, CC) |
Calculate length of the curve objects in the slice. | |
Calculate length of the curve objects in the slice.
function STATS = mibCalcCurveLength | ( | slice, | |
pixSize, | |||
CC ) |
Calculate length of the curve objects in the slice.
It is possible to measure the length of both closed and non-closed curves. The images are subject to thinning, so that the curves have width of 1 pixel.
slice | a 2D slice [1:height, 1:width], class uint8 with drawn curves or a structure with detected labels, returned by regionprops function |
pixSize | [optional] a structure with pixel sizes. The required fields .x and .y; can be empty |
CC | [optional] a structure with detected labels, returned by regionprops function |
STATS | a structure with CurveLengthInPixels or CurveLengthInUnits field that has the length of the curve segment and the PixelIdxList field with indeces of pixels in each segment. |
Referenced by mibStatisticsController.runStatAnalysis_Callback().