Skip to content

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

@zoccoler

Description

@zoccoler

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions