mermin-shape
Minkowski tensors, Fourier boundary decomposition, and morphometric shape descriptors for cell boundaries. Part of the mermin library.
Features
- Minkowski scalar functionals: W_0 (area), W_1 (perimeter)
- Minkowski tensor W_1^{1,1}: rank-2 orientation tensor giving cell elongation magnitude and direction
- k-atic shape amplitudes: W_1^{s,0} for k = 1, 2, 4, 6 via boundary normal integration
- Fourier boundary decomposition: a_k = (1/N) sum r_i exp(-ik theta_i) in polar coordinates relative to centroid
- Morphometrics: shape index p_0 = P/sqrt(A), convexity = A/A_hull (Graham scan convex hull)
Why Minkowski tensors over Fourier?
Fourier decomposition of r(theta) assumes a well-defined centroid and breaks down for non-convex or highly irregular cell shapes. Minkowski tensors handle arbitrary boundary geometry correctly because they integrate over edge normals, not radial coordinates. Both are provided for comparison.
Usage
use ;
use BoundaryContour;
let contour = new?;
let tensor = minkowski_w1_tensor;
let = elongation_from_w1_tensor;
let = katic_shape_spectrum;
License
MIT