morphogen.analysis.anisotropy

Anisotropy of a phase: the mean intercept length (MIL) along directions and its fabric tensor (Whitehouse 1974; Harrigan & Mann 1984), as BoneJ computes it for trabecular bone and Degdeg & Dirrenberger for an open-cell copper foam.

Along a direction d, the test lines cross the boundary of the phase P_L(d) times per unit length; the mean intercept length of the phase is MIL(d) = 2 V_V / P_L(d), the mean length of its chords along d. The MIL of an ellipsoidal structure follows an ellipsoid: 1 / MIL(d)^2 = d . M . d, the fabric tensor M fitted by least squares to the 13 directions of the grid (the three axes, the six face and the four body diagonals, in physical units for anisotropic voxels); its principal MILs 1 / sqrt(m_i) give the anisotropy ratios and the degree of anisotropy 1 - MIL_min / MIL_max.

The covariance of a cellular phase passes through a first minimum below its plateau p^2 before reaching it (the hole effect), at lags of the order of the cell radii: Degdeg & Dirrenberger take these lags along the three axes as a second measure of the aspect of the cells.

class morphogen.analysis.anisotropy.Fabric(directions: ndarray, mil: ndarray, tensor: ndarray, principal: ndarray, axes: ndarray)[source]

Bases: object

The MIL along the directions (unit vectors), the fabric tensor M, its principal MILs (decreasing) and their axes (columns), the degree of anisotropy.

property ratios: ndarray

Principal MILs over the smallest one (the anisotropy ratios).

property degree: float

isotropic).

Type:

Degree of anisotropy 1 - MIL_min / MIL_max (0

morphogen.analysis.anisotropy.mean_intercept_length(image, phase: int = 1, *, periodic=None) → tuple[ndarray, ndarray][source]

Unit directions (13 x 3) and the mean intercept length of phase along each.

morphogen.analysis.anisotropy.fabric_tensor(image, phase: int = 1, *, periodic=None) → Fabric[source]

The MIL fabric tensor of phase (see the module).

class morphogen.analysis.anisotropy.HoleEffect(lags: ndarray, values: ndarray, plateau: float)[source]

Bases: object

The first minimum of the covariance below its plateau p^2 along the x, y and z axes: its lags (physical units; NaN where the covariance has none) and values.

property ratios: ndarray

The lags in decreasing order over the smallest (c/a, b/a, 1).

morphogen.analysis.anisotropy.covariance_minima(image, phase: int = 1, *, max_lag: int | None = None, periodic=None) → HoleEffect[source]

The first local minimum of the covariance of phase along each axis after it falls below its plateau, refined by the parabola through the three nearest lags.