Compactness measure
Compactness measure is a numerical quantity representing the degree to which a shape is compact. The circle and the sphere are the most compact planar and solid shapes, respectively.
Properties
Various compactness measures are used. However, these measures have the following in common:- They are applicable to all geometric shapes.
- They are independent of scale and orientation.
- They are dimensionless numbers.
- They are not overly dependent on one or two extreme points in the shape.
- They agree with intuitive notions of what makes a shape compact.
Examples
Similarly, a comparison can be made between the perimeter of the shape and that of its convex hull, its bounding circle, or a circle having the same area.
Other tests involve determining how much area overlaps with a circle of the same area or a reflection of the shape itself.
Compactness measures can be defined for three-dimensional shapes as well, typically as functions of volume and surface area. One example of a compactness measure is sphericity. Another measure in use is, which is proportional to.
For raster shapes, i.e. shapes composed of pixels or cells, some tests involve distinguishing between exterior and interior edges.
More sophisticated measures of compactness include calculating the shape's moment of inertia or boundary curvature.