Skip to content

ENH: Make eccentricity more similar to elongation#1743

Merged
cookpa merged 1 commit intomasterfrom
label_eccentricity
May 9, 2024
Merged

ENH: Make eccentricity more similar to elongation#1743
cookpa merged 1 commit intomasterfrom
label_eccentricity

Conversation

@cookpa
Copy link
Member

@cookpa cookpa commented May 7, 2024

Related to #1733

Given a 3D object with principal moments V_0 <= V_1 <= V_2, itkShapeLabelMapFilter computes elongation as sqrt(V_2 / V_1).

It doesn't compute eccentricity, so I had added that to LabelGeometryMeasures as sqrt(1 - V_2^2 / V_0^2).

But I think it might be better to use sqrt(1 - V_2^2 / V_1^2), so that it works on the same moments as the elongation. For cortex and other thin structures, the relative shape of the longer sides are often more interesting anyway.

The new filter also has roundness, which is a measure of similarity to a sphere and considers all three axes.

@cookpa cookpa merged commit f2ccda0 into master May 9, 2024
@cookpa cookpa deleted the label_eccentricity branch May 9, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant