You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature needs to be implemented on the 2D projection of a morphology and it will describe the minimum over the maximum dimension in the projected plane i.e. x-y. We will therefore need to compute this in all three projections at the morphology level.
To extract the projection points from a morphology:
defaspect_ratio(pts):
"""Computes min dimension / max dimension"""max_dim=np.max(nm.morphmath.principal_direction_extent(pts))
min_dim=np.min(nm.morphmath.principal_direction_extent(pts))
returnmin_dim/max_dim
The text was updated successfully, but these errors were encountered:
This feature needs to be implemented on the 2D projection of a morphology and it will describe the minimum over the maximum dimension in the projected plane i.e. x-y. We will therefore need to compute this in all three projections at the morphology level.
To extract the projection points from a morphology:
Please find some sample code for this feature:
The text was updated successfully, but these errors were encountered: