Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Make eccentricity more similar to elongation #1743

Merged
merged 1 commit into from
May 9, 2024
Merged

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
1 check passed
@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