![]() |
Microscopy Image Browser
1.233
|
Calculate length of the curve objects in the slice. More...
Functions | |
function STATS = | ib_calcCurveLength (slice, pixSize, CC) |
Calculate length of the curve objects in the slice. More... | |
Calculate length of the curve objects in the slice.
function STATS = ib_calcCurveLength | ( | 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. |
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 MaskStatsDlg>runStatAnalysis_Callback().