We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Aim is to have a measure of circular-ness or roundness output in the grainstats.
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.
No response
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: