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

'area' is actually 'volume' for 3D data #73

Open
zoccoler opened this issue Mar 24, 2023 · 1 comment
Open

'area' is actually 'volume' for 3D data #73

zoccoler opened this issue Mar 24, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@zoccoler
Copy link
Collaborator

scikit-image regionprops returns the same feature called 'area' for 2D and 3D images.

Looking at the documentation, this 'area' is actually the number of pixels/voxels in an object (since version 0.20 those pixels/voxels are scaled by the pixel/voxel size given by an extra optional argument called spacing).

So, in 3D, this would actually be a volume. The term 'area' might be misleading.

One potential simple fix here suggested by @haesleinhuepf to keep backwards compatibility would be to add an extra column named 'volume' for 3D data which has the same content as 'area'.

@zoccoler zoccoler added the good first issue Good for newcomers label Mar 24, 2023
@MarkusMukenhirn
Copy link

Great, thanks! I was looking for that info. Also, adding an extra column for 3D data called volume makes a lot of sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants