Skip to content

regionprops: consistent naming scheme #5213

@maxfrei750

Description

@maxfrei750

Description

It would be nice to have a consistent naming scheme for the properties retrieved by the measure.regionprops function.

For instance, there are feret_diameter_max and max_intensity. It would be nice to have intensity_max instead.

Other candidates are:

mean_intensity
min_intensity
bbox_area
convex_area
convex_image
filled_area
filled_image
intensity_image
major_axis_length
max_intensity
mean_intensity
min_intensity
minor_axis_length
weighted_centroid
weighted_local_centroid
weighted_moments
weighted_moments_central
weighted_moments_hu
weighted_moments_normalized

Since these changes would not be backwards compatible, they could be targeted for version 1.0.

Of course, it would also be a possibility, to rename feret_diameter_max to max_feret_diameter. However, this would prevent similar properties (i.e. all the different kinds of areas, intensities, moments and images) to be grouped together based on their name (see the discussion in #4820).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions