Searches for numcyl cylinders in input image which are approximately aligned with the input image z-axis.
Perform exhaustive search over a grid of cylinder radius, centre-x, centre-y values, then uses numerical optimization (scipy.optimize.minimize()) on the best of the exhaustive search results to refine the cylinder fits.
Returns list of cylinder parameters in global/absolute coordinates and in length units of input.md.getVoxelSizeUnit().
Parameters: |
|
---|---|
Return type: | list of [metricVal, cylinderParameters] pairs |
Returns: | List of pairs pairList = [[metricVal0, cylPrms0], [metricVal1, cylPrms1], ...] where cylPrms0=[[centrez0, centrey0, centrex0], radius0, axisLength0, [axisz0, axisy0, axisx0]], cylPrms1=[[centrez1, centrey1, centrex1], radius1, axisLength1, [axisz1, axisy1, axisx1]], etc. If retcylimg is True, additionally returns segmented mango.Dds image labeled with cylinder boundaries (i.e. returns pairList, segDds). The cylinder parameters are global/absolute coordinates and in length units of input.md.getVoxelSizeUnit() |