Shape-Based Features
Notation
- \( A \): Area (number of foreground pixels)
- \( P \): Perimeter (boundary length of the object)
- \( L_{\text{major}} \): Major axis length of the best-fit ellipse
- \( L_{\text{minor}} \): Minor axis length of the best-fit ellipse
- \( CA \): Convex area (area of convex hull around object)
- \( BB_A \): Bounding box area (area of smallest rectangle enclosing object)
1. Area
Measures the total number of non-zero (foreground) pixels in the binary mask:
2. Perimeter
Length of the object's boundary using edge-following (e.g. bwboundaries):
3. Compactness / Form Factor
Measures how closely the shape resembles a perfect circle:
4. Eccentricity
Describes elongation of the ellipse that best fits the shape:
Values near 0 indicate circular shapes, near 1 indicate line-like shapes.
5. Major Axis Length
Length of the longest diameter of the best-fit ellipse:
6. Minor Axis Length
Length of the shortest diameter of the best-fit ellipse:
7. Elongation / Aspect Ratio
Ratio of major to minor axis lengths:
8. Solidity
Ratio of actual area to convex hull area, indicating how "filled" the shape is:
9. Extent / Rectangularity
Ratio of area to bounding box area, representing how well the shape fills the box:
10. Convex Area
Area of the convex hull that encloses the object:
________________________________________________________________________________________
Topology-Based Features
Notation
- \( A \): Area (number of foreground pixels)
- \( O \): Number of connected components (objects)
- \( H \): Number of holes
- \( \chi \): Euler number
- \( D \): Fractal dimension
- \( \mathcal{L} \): Lacunarity
- \( W \): Number of watershed segments
1. Euler Number
Measures object connectivity, defined as the number of objects minus number of holes:
2. Number of Holes
Holes are counted indirectly using Euler number:
3. Fractal Dimension (Box-Counting)
Quantifies self-similarity and complexity. Using box-counting method:
Where \( N(\epsilon) \) is the number of boxes of size \( \epsilon \) needed to cover the shape.
4. Number of Objects
Counts the number of 8-connected (2D) or 26-connected (3D) foreground regions:
5. Watershed Segments
Counts the number of distinct watershed basins from the distance-transformed binary image:
6. Topology Index
Normalized measure of topological complexity per unit area:
7. Lacunarity
Measures texture heterogeneity and gap distribution using the gliding-box method:
Where \( M \) is the set of box masses (foreground pixel counts) over all positions.
________________________________________________________________________________________
Boundary-Based Shape Features
Notation
- \( P \): Actual perimeter length of the boundary
- \( P_c \): Perimeter length of the convex hull of the boundary
- \( k_i \): Curvature at boundary point \( i \)
- \( N \): Number of boundary points
- \( r_i \): Radial length from centroid to boundary point \( i \)
- \( A \): Area enclosed by the shape
- \( A_c \): Area of the convex hull
- \( R_{eq} \): Equivalent circle radius for given area
1. Boundary Roughness
Ratio of actual perimeter to convex hull perimeter:
2. Mean Absolute Curvature
Average of the absolute curvature values along the boundary:
3. Mean Radial Length
Average distance from the centroid to each boundary point:
4. Contour Complexity
Ratio of actual perimeter to the perimeter of an equivalent circle with the same area:
5. Mean Distance to Boundary
Same as mean radial length:
6. Minimum Distance to Boundary
Minimum distance from centroid to boundary points:
7. Maximum Distance to Boundary
Maximum distance from centroid to boundary points:
8. Standard Deviation of Distances to Boundary
Standard deviation of distances from centroid to boundary points:
9. Convex Deficiency
Normalized difference between convex hull area and actual area:
10. Bending Energy
Sum of squared curvature values along the boundary:
11. Contour Fractal Dimension (Box-Counting)
Estimated fractal dimension of the contour boundary:
Where \( N(\epsilon) \) is the number of boxes of size \( \epsilon \) needed to cover the contour.
12. Boundary Straightness
Ratio of convex hull perimeter to actual perimeter: