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

[feature] : Circularity Metric #860

Open
MaxGamill-Sheffield opened this issue Jun 12, 2024 · 1 comment
Open

[feature] : Circularity Metric #860

MaxGamill-Sheffield opened this issue Jun 12, 2024 · 1 comment
Labels
enhancement New feature or request GrainStats Issues pertaining to the GrainStats class

Comments

@MaxGamill-Sheffield
Copy link
Collaborator

Is your feature request related to a problem?

Aim is to have a measure of circular-ness or roundness output in the grainstats.

Describe the solution you would like.

Can be done by measuring the grains outer hull and using a ratio of its area to its perimeter (or circumference):

Roundness = 4π × Area / Perimeter^2

Will give a normalised value of 0 for non-circles and 1 for a perfect circle.

Describe the alternatives you have considered.

No response

Additional context

No response

@MaxGamill-Sheffield MaxGamill-Sheffield added enhancement New feature or request GrainStats Issues pertaining to the GrainStats class labels Jun 12, 2024
@SylviaWhittle
Copy link
Collaborator

Note: A couple other similar metrics that have been used in the past are:

ratio of feret diameters - since a circle has a feret ratio of 1 and a line has a feret ratio of big. But this metric can be gamed.

Variance in distances of edge points from centroid

Though the geometrically derived metric above is likely the best in most cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request GrainStats Issues pertaining to the GrainStats class
Projects
None yet
Development

No branches or pull requests

2 participants