Fast sphericity and roundness in 2D and 3D using local thickness
Project description
Fast sphericity and roundness approximation in 2D and 3D
Fast approximation of Wadell sphericity and roundness in 2D and 3D, described in our paper (arXiv link).
The method uses the output from local thickness algorithm to approximate the two measures. Resulting sphericity values closely match those from exact approaches. Roundness values no longer retain the original 0-1 range, but correlate closely to it.
The execution speed is dependent primarily on image volume, and not on number of objects, enabling fast evaluation of thousands of objects at once.
For in-depth introduction to the library, visit the CodeOcean capsule.
Installation
pip install fast_rs
How to use
For in-depth introduction, visit the CodeOcean capsule.
Both sphericity and roundness can be calculated together, from a binary mask. The process is exactly the same in 2D and 3D.
from fast_rs import rs
mask = ... # Load/provide binary mask (can be both a 2D and 3D np.array)
roundness_vec, sphericity_vec, label_img = rs.rs_calculate(mask)
Returned label image indices can be used to connect measure values to specific objects in the mask.
Example result:
Paper
The fast sphericity and roundness approximation method is described and evaluated in our contribution to CVMI (CVPR 2025 Workshop). Please cite our paper if you use the method in your work.
TBA: Official publication link
@article{pieta2025,
title={Fast Sphericity and Roundness approximation in 2D and 3D using Local Thickness},
author={Pawel Tomasz Pieta and Peter Winkel Rasumssen and Anders Bjorholm Dahl and Anders Nymark Christensen},
year={2025},
eprint={2504.05808},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2504.05808},
}
License
MIT License (see LICENSE file).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fast_rs-0.2.0.tar.gz.
File metadata
- Download URL: fast_rs-0.2.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
474f18397d8b6cfde705dfce6cdd3d9edda05c1ec474ed0d9b22cb54355e59fd
|
|
| MD5 |
5ff73ec035e2f3b6cfeed96247d5a66f
|
|
| BLAKE2b-256 |
a17a7ca783d64747c2b961ba39d2a9ea16ee68281558028de9ba8b7c873757ed
|
File details
Details for the file fast_rs-0.2.0-py3-none-any.whl.
File metadata
- Download URL: fast_rs-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b64f057ada87f71203ec931430102f1d840d03c26f2b40d59f282c1b9515494b
|
|
| MD5 |
f0cad13179bc9766b3c99e17840a6ff1
|
|
| BLAKE2b-256 |
e84f81150a54a3190e0ce5b51ce36e00e63988065ab58b6142392c6d5c719c56
|